Heisenberg
Heisenberg

Reputation: 8806

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 (e.g. 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.

Upvotes: 1

Views: 89

Answers (1)

Roman Luštrik
Roman Luštrik

Reputation: 70603

You will need to make it into a package.

Upvotes: 2

Related Questions