And*_*our 10 documentation r roxygen2
这比一个问题更令人烦恼,但有没有办法防止在编译R中的文档并且行太长时发生的行"溢出"?
使用以下内容创建的一些文档片段R CMD Rd2pdf [options] files
:
我无法在任何地方找到这一点,而Rd2pdf的唯一选择是:
Options:
-h, --help print short help message and exit
-v, --version print version info and exit
--batch no interaction
--no-clean do not remove created temporary files
--no-preview do not preview generated PDF file
--encoding=enc use 'enc' as the default input encoding
--outputEncoding=outenc
use 'outenc' as the default output encoding
--os=NAME use OS subdir 'NAME' (unix or windows)
--OS=NAME the same as '--os'
-o, --output=FILE write output to FILE
--force overwrite output file if it exists
--title=NAME use NAME as the title of the document
--no-index don't index output
--no-description don't typeset the description of a package
--internals typeset 'internal' documentation (usually skipped)
Run Code Online (Sandbox Code Playgroud)
抱歉剧透:一种解决方案是在极端情况下不使用 roxygen2进行包维护。为什么不手动维护您的描述?你不需要太多改变,它看起来好多了......
绝大多数包实际上并不需要“整理”。为什么不遵循许多生物导体包(“Matrix”等)的传统,将 S4 类定义(包括参考类)放入文件“AllClasses.R”中,也可以使用“AllGenerics.R”,其余的则进行整理顺序应该不重要。