Reputation: 497
I am currently developing a package for R. I have functions (of course), datasets, vignettes and tests. The vignettes are to be processed with Rmarkdown
and the manuals with Roxygen2
, finally, the tests are to be performed with testthat
(so far everything works ok).
I would like to develop and finalize the package entirely from within R with devtools
instructions. I would like to know the optimal order to call these functions. At this time, I use in that order
devtools::document("package folder")
devtools::build("package folder")
devtools::install("package folder", upgrade = "never")
devtools::run_examples("package folder")
devtools::test("package folder")
devtools::build_vignettes("package folder")
devtools::check("package folder", cran=TRUE)
My question shows my lack of understanding of what these functions do precisely. Hence, a brief summary of the role of each function would be appreciated. Also, am I missing some steps? or are some function calls above unrequired?
Upvotes: 0
Views: 149
Reputation: 2462
Chapter 2 (The whole game) of the R package explains all in detail. The one that you are missing yet is beneficial is load_all(), which loads your modified functions into the memory.
Upvotes: 1