-
Notifications
You must be signed in to change notification settings - Fork 31
[Cheat Sheet] Building the package
Charlotta edited this page Mar 18, 2021
·
3 revisions
We are using devtools, usethis and pkgdown to build the package and create (hopefully meaningful) documentation.
If you are not familiar with the R packages, at least the following commands will be useful for contributing code, building and checking the package
# Create empty R file to define function
usethis::use_r()
# Matching R testthis file where your unit tests should live
usethis::use_test()
devtools::document()
followed by devtools::build()
devtools::load_all()
devtools::install()
library(visR)
pkgdown::build_site()
devtools::check()
More can be found in Hadley's book on R packages: https://r-pkgs.org/
About the packages that we use to help with our development workflow: