2013-01-17 2 views
10

이것은 문제가되는 것보다 더 성가심이지만, R 문서가 컴파일되고 라인이 너무 길 때 발생하는 "오버 플로우"를 방지하는 방법이 있습니까?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) 

답변

0

: 하나 해결책은 꾸러미 유지 관리를 위해 극단에 roxygen2 을 사용하여 이 아닌입니다. 왜 당신의 설명을 수동으로 유지하지 않습니까? 당신은 많은 변화를 필요로하지 않으며 훨씬 더 좋아 보입니다 ...

대다수의 패키지에는 'Collate'가 실제로 필요하지 않습니다. 의 S4 생물학적 정의 (참조 클래스 포함)를 'AllClasses.R'파일에 넣고 'AllGenerics.R'을 사용할 수도 있고 나머지 생물 용으로 사용할 수있는 많은 생물 도체 패키지 'Matrix'등의 전통을 따르지 않는 이유 , 데이터 정렬 순서는 중요하지 않습니다.

+1

동일한 문제가 있습니다. 나는 DESCRIPTION 파일을 수동으로 업데이트하려고하는데, 부합 필드는 여전히 pdf 출력에 오버 플로우된다. 나는 일반 R CMD INSTALL [패키지 이름]을 사용하고 R CMD는 [패키지 이름]을 확인합니다. 그런 다음 [패키지 이름] .Rcheck 폴더에서 pdf 파일을 가져옵니다. – JAponte

관련 문제