Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.02 KB

R-Development.md

File metadata and controls

15 lines (13 loc) · 1.02 KB

Notes on Developing R Packages

  • The man documents are created with roxygen2 based on R/ directory code files with devtools::document()
  • Test package with devtools::test() (see /tests directory)
  • Use devtools::check() to check for issues (also runs devtools::test())
  • Use devtools::build() to build the package with vignettes included (creates .tar.gz file)
  • Check package on other environments for CRAN release using rhub::check_for_cran()
  • To run all code examples in the package documentation, use this command from devtools: run_examples(test=TRUE)
  • Use pkgdown::build_site() to build the website.

Development Resources