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.