Skip to content

Instantly share code, notes, and snippets.

@syoh
Created February 8, 2020 16:46
Show Gist options
  • Save syoh/5061507502e5056e0938fb784c4c0f4f to your computer and use it in GitHub Desktop.
Save syoh/5061507502e5056e0938fb784c4c0f4f to your computer and use it in GitHub Desktop.
Notes for R package development workflow

Package deveopment in R

This note is for myself from reading

usethis for automation

Many file creation and update can be accomplished with usethis. Some that I found useful are

  • create_pacakge(): starts a package
  • use_rcpp_eigen(): makes package appropriate for RcppEigen
  • use_roxygen_md(): converts markdown in roxygen docummentation to Rd syntax
  • use_package(): specify a pacakge dependency
  • use_vignette(): create a vignette
    devtools::build_vignettes() compiles vignettes only devtools::build() builds package including vignettes devtools::install_*(build_vignettes = TRUE) builds vignettes (build_vignettes = FALSE is default)
  • use_git(): initialize a git repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment