Can I generate comments using roxygen2 without building an R package? [duplicate]

大兔子大兔子 提交于 2021-02-08 08:26:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!