防止R文档中的行溢出?

时间:2013-01-17 01:11:39

标签: r documentation roxygen2

这更令人烦恼而不是问题,但有没有办法防止在编译R中的文档并且行太长时发生的行“溢出”?

使用R CMD Rd2pdf [options] files创建的一些文档的片段: A snippet of documentation with text going outside the document margins (grey bars show the width of the pdf document)

我无法在任何地方找到这一点,而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)

1 个答案:

答案 0 :(得分:1)

对于扰流板感到抱歉:在extremis 中使用roxygen2 进行包维护时,一个解决方案。为什么不手动维护您的描述?你不需要做太多改动,看起来好多了......

绝大多数软件包确实不需要'Collat​​e'。 为什么不遵循许多生物导体包装的传统,'Matrix'等 将S4类定义(包括引用类)放在文件'AllClasses.R'中,也可以使用'AllGenerics.R',其余的,整理顺序无关紧要。