R Package Websites
Marta Bofill Roig, Pavla Krotka
website.Rmd
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
- Install development version from GitHub
devtools::install_github("MartaBofillRoig/IMS-software/ToyPackage", build = TRUE, force = TRUE)
- Make sure your working directory is the package folder
filepath <- "C:/Users/pavla/Nextcloud/GitKraken/IMS-software/ToyPackage"
setwd(filepath)
- Run once to configure your package to use pkgdown
usethis::use_pkgdown()
- Run to build the website
pkgdown::build_site()