簡體   English   中英

創建R包

[英]Creating R package

我在創建R包時遇到了一些麻煩。 在創建R手冊之前,一切都很好。 我安裝了所有東西,但我不明白我的問題出在哪里。 這是我的“ R CMD檢查包”的輸出。

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"

我已經解決了應對MIKTEX特定文件夾中的Rd.sty文件的問題。

現在錯誤有所不同:

如果不在.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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM