10

これは問題というより煩わしいですが、R のドキュメントがコンパイルされ、行が長すぎるときに発生する行の「オーバーフロー」を防ぐ方法はありますか?

で作成されたいくつかのドキュメントのスニペットR CMD Rd2pdf [options] files: ドキュメントの余白からはみ出すテキストを含むドキュメントのスニペット (灰色のバーは PDF ドキュメントの幅を示します)

これについての言及はどこにも見つかりません.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)
4

1 に答える 1

2

ネタバレで申し訳ありません: 1 つの解決策は、パッケージのメンテナンスにroxygen2を極端に使用しないことです。DESCRIPTION を手動で維持してみませんか? あなたは多くの変更を必要とせず、それはとても良く見えます...

大部分のパッケージでは、「Collat​​e」は実際には必要ありません。S4クラス定義(参照クラスを含む)をファイル「AllClasses.R」に入れるという多くのバイオコンダクタパッケージ、「Matrix」などの伝統に従い、おそらく「AllGenerics.R」も使用し、残りの場合は照合しないのはなぜですか順序は重要ではありません。

于 2013-02-02T15:13:11.810 に答える