问题
I need to generate documentation for a collection of R programs. Unfortunately, building a package based on the source code is not an option (I know how to do that, and I have already experimented with RStudio, roxygen2, and packages, and it works like a charm). Can I use roxygen2 to to generate documentation from the R source code without building a package in a way similar to how doxygen works with C++? If not, are there other options for documenting R code that do not rely on packages?
回答1:
If your only after the documentation, devtools::document()
will build the documentation files without building the package.
来源:https://stackoverflow.com/questions/27948768/can-i-generate-comments-using-roxygen2-without-building-an-r-package