简体   繁体   中英

Using Roxygen2 for my utility functions

In my analysis projects (not a package), I usually have utility functions that I source() in different analysis scripts.

I've been using the Roxygen2 documentation convention (eg starting the documentation with #' , which is well supported in RStudio.

Can I make these documentation available via help(my_utility_function) ? Everything I read so far uses Roxygen2 and devtools::document() in the context of a package. Indeed, when I tried to use devtools::document() , it complains about not being able to find the package root.

您将需要将其打包。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM