Is it possible to run package.skeleton('pkgname')
and have all of the .R
files end up in a single file or set of files rather than one file per function?
A developer I am working with asked me why I had each function in a separate file and my only rationale was 'that is the default behavior`.
If you specify a file containing several functions in the code_files
argument to package.skeleton
, that should just be copied to the R
directory in the package.
So, yes.
Don't use package.skeleton. Create the files yourself and use roxygen to create the documentation. It's a much easier workflow in the long run.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With