开发者

Can I run package.skeleton without parsing functions into separate files?

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 fun开发者_运维知识库ction 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜