Dasonk / docstring

Provides docstring like functionality to R functions without requiring the need to create a package.
57 stars 6 forks source link

Helper function to convert scripts #12

Open Dasonk opened 7 years ago

Dasonk commented 7 years ago

Make a helper function that accepts a script and detects which functions have docstrings and converts them to fully roxygen compliant files so that when somebody wants to convert their scripts to packages it makes it a bit easier.

ggrothendieck commented 2 years ago

This would be useful. It would be nice if the reverse would be supported too, i.e. given a script file with standard roxygen2 comments before each function generate the docstring version so that one can move back and forth between the two forms.