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?
https://stackoverflow.com/questions/66499868/order-of-actions-in-creating-a-r-package-with-devtools March 06, 2021 at 05:27AM
没有评论:
发表评论