Skip to contents

Why should my package have a website?

  • clear and structured way of presenting your package
  • more user-friendly documentation of the package structure and its functions
  • additional information and sites can be included via vignettes
  • can be easily created using the pkgdown package

How to create a website for an R package in 4 simple steps

  1. Install development version from GitHub
devtools::install_github("MartaBofillRoig/IMS-software/ToyPackage", build = TRUE, force = TRUE)
  1. Make sure your working directory is the package folder
filepath <- "C:/Users/pavla/Nextcloud/GitKraken/IMS-software/ToyPackage"
setwd(filepath)
  1. Run once to configure your package to use pkgdown
usethis::use_pkgdown()
  1. Run to build the website
pkgdown::build_site()