Library to reorganize R source files, one file per function

I seem to remember there was a nice helper library that would automatically: look in your package's R/ directory; find all the functions; and create a new set of files, one file per function, with associated roxygen markup of course. Am I dreaming, or does this exist?

1 Like

This SO answer may get you most of the way to your goal: https://stackoverflow.com/questions/13260252/a-better-way-to-extract-functions-from-an-r-script

3 Likes

Indeed and that points at utils::package.skeleton(). Thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.