2016-02-15 2 views
2

У меня возникли проблемы с созданием пакета R. Все хорошо, пока не будет создано руководство R. Я установил все, но я не могу понять, где моя проблема. Вот мой вывод «R CMD check package».Создание пакета R

Rcmd.exe build gigigi 

checking for file 'gigigi/DESCRIPTION' ... OK 
preparing 'gigigi': 
checking DESCRIPTION meta-information ... OK 
checking for LF line-endings in source and make files 
checking for empty or unneeded directories 
building 'gigigi_1.0.tar.gz' 


Rcmd.exe check gigigi_1.0.tar.gz 

using log directory 'H://gigigi.Rcheck' 
using R version 3.1.2 (2014-10-31) 
using platform: x86_64-w64-mingw32 (64-bit) 
using session charset: ISO8859-1 
checking for file 'gigigi/DESCRIPTION' ... OK 
checking extension type ... Package 
this is package 'gigigi' version '1.0' 
checking package namespace information ... OK 
checking package dependencies ... OK 
checking if this is a source package ... OK 
checking if there is a namespace ... OK 
checking for executable files ... OK 
checking for hidden files and directories ... OK 
checking for portable file names ... OK 
checking whether package 'gigigi' can be installed ... OK 
checking installed package size ... OK 
checking package directory ... OK 
checking DESCRIPTION meta-information ... OK 
checking top-level files ... OK 
checking for left-over files ... OK 
checking index information ... OK 
checking package subdirectories ... OK 
checking R files for non-ASCII characters ... OK 
checking R files for syntax errors ... OK 
checking whether the package can be loaded ... OK 
checking whether the package can be loaded with stated dependencies ... OK 
checking whether the package can be unloaded cleanly ... OK 
checking whether the namespace can be loaded with stated dependencies ... OK 
checking whether the namespace can be unloaded cleanly ... OK 
checking loading without being on the library search path ... OK 
checking dependencies in R code ... OK 
checking S3 generic/method consistency ... OK 
checking replacement functions ... OK 
checking foreign function calls ... OK 
checking R code for possible problems ... OK 
checking Rd files ... OK 
checking Rd metadata ... OK 
checking Rd cross-references ... OK 
checking for missing documentation entries ... OK 
checking for code/documentation mismatches ... OK 
checking Rd \usage sections ... OK 
checking Rd contents ... OK 
checking for unstated dependencies in examples ... OK 
checking examples ... NONE 
checking PDF version of manual ...Warning: running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/Rcmd.exe" Rd2pdf --batch --no-preview --build-dir="C:/Users/scacciat/AppData/Local/Temp/RtmpERDOHF/Rd2pdf6c2c7def4dbf" --no-clean -o gigigi-manual.pdf "H://gigigi.Rcheck/gigigi"' had status 1 
WARNING 
LaTeX errors when creating PDF version. 
This typically indicates Rd problems. 
checking PDF version of manual without hyperrefs or index ... ERROR 
Warning: running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/Rcmd.exe" Rd2pdf --batch --no-preview --build-dir="C:/Users/scacciat/AppData/Local/Temp/RtmpERDOHF/Rd2pdf6c2c2c7e6360" --no-clean --no-index -o gigigi-manual.pdf H://gigigi.Rcheck/gigigi' had status 1 
Re-running with no redirection of stdout/stderr. 
Hmm ... looks like a package 
You may want to clean up by 'rm -rf C:/Users/scacciat/AppData/Local/Temp/RtmpERDOHF/Rd2pdf6c2c53411284' 
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : 
pdflatex is not available 
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : 
pdflatex is not available 
Error in running tools::texi2pdf() 
Warning: running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/Rcmd.exe" Rd2pdf --batch --no-preview --build-dir="C:/Users/scacciat/AppData/Local/Temp/RtmpERDOHF/Rd2pdf6c2c53411284" --no-clean --no-index -o gigigi-manual.pdf H://gigigi.Rcheck/gigigi' had status 1 

Exited with status 1. 

Я проверил некоторые решения в Интернете, но я не нашел ответа:

Sys.which("pdflatex") 
"C:\\PROGRA~2\\MIKTEX~1.9\\miktex\\bin\\pdflatex.exe" 
+0

«' pdflatex is not available' »вызывает все ваши проблемы. Просто установите его 'install.packages (" pdflatex ", dependencies = T)' – Paul

+2

Uh, no. pdflatex не является пакетом R. Проблема заключается в недавнем изменении в miktex. Попробуйте использовать другое распределение латекса, например, texlive. – Thomas

+0

Нет пакетов miktex или texlive. Я попробовал texreg, но он все еще не работает. –

ответ

0

Я решил проблему, справляясь файл Rd.sty в определенной папке MikTex.

Теперь ошибки бывают разные:

Похоже, что этот пакет имеет проблему погрузочную, когда не на .libPaths: увидеть сообщения для деталей.

checking dependencies in R code ... OK 

checking S3 generic/method consistency ... OK 

checking replacement functions ... OK 

checking foreign function calls ... OK 

checking R code for possible problems ... OK 

checking Rd files ... OK 

checking Rd metadata ... OK 

checking Rd cross-references ... OK 

checking for missing documentation entries ... OK 

checking for code/documentation mismatches ... OK 

checking Rd \usage sections ... OK 

checking Rd contents ... OK 

checking for unstated dependencies in examples ... OK 

checking contents of 'data' directory ... OK 

checking data for non-ASCII characters ... OK 

checking data for ASCII and uncompressed saves ... OK 

checking examples ... OK 

checking PDF version of manual ...Warning: running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/Rcmd.exe" Rd2pdf --batch --no-preview --build-dir="C:/Users/scacciat/AppData/Local/Temp/RtmpWMICIY/Rd2pdf686c534f420d" --no-clean -o KODAMA-manual.pdf "H://KODAMA.Rcheck/KODAMA"' had status 1 
WARNING 

LaTeX errors when creating PDF version. 

Обычно это указывает на проблемы с Rd.

LaTeX errors found: 

checking PDF version of manual without hyperrefs or index ... ERROR 

Warning: running command '"C:/PROGRA~1/R/R-31~1.2/bin/x64/Rcmd.exe" Rd2pdf --batch --no-preview --build- 
dir="C:/Users/scacciat/AppData/Local/Temp/RtmpWMICIY/Rd2pdf686ccd610fa" --no-clean --no-index -o KODAMA-manual.pdf H://KODAMA.Rcheck/KODAMA' had status 1 


Exited with status 1. 
Смежные вопросы