我尝试从github 构建R包的 fork(这个fork有一个新的bugfix).不幸的是,在尝试构建小插图时,编译在我的系统上错过了TeX.我不想安装SW的负载只是为了构建我不需要的插图.如何禁用构建它们?
这就是我编译的方式:
> require(devtools)
> install_github("patcpsc/rredis")
Installing github repo rredis/master from patcpsc
Downloading master.zip from https://github.com/patcpsc/rredis/archive/master.zip
Installing package from C:\DOCUME~1\Tomas\LOCALS~1\Temp\Rtmpolel1d/master.zip
Installing rredis
Installing dependencies for rredis:
RUnit
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://www.freestatistics.org/cran/bin/windows/contrib/3.1/RUnit_0.4.26.zip'
Content type 'application/zip' length 194763 bytes (190 Kb)
opened URL
downloaded 190 Kb
package ‘RUnit’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Documents and Settings\Tomas\Local Settings\Temp\Rtmpolel1d\downloaded_packages
"C:/PROGRA~1/R/R-31~1.0/bin/i386/R" --vanilla …Run Code Online (Sandbox Code Playgroud) 我正在创建一个带有小插图的R包.但是,当我尝试使用安装包时
devtools::install(build_vignettes = TRUE)
Run Code Online (Sandbox Code Playgroud)
发生错误,因为它无法在doc文件夹中找到文件index.html.我以为这个文件会被自动创建,但是这里出现了问题.发生的错误如下:
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \
--quiet CMD INSTALL "C:/Users/lnab/AppData/Local/Temp/Rtmpi0XLJ4/mecor_0.1.0.tar.gz" \
--library="\\vf-d2-home/d2home$/lnab/MyDocs/R/win-library/3.4" --install-tests
* installing *source* package 'mecor' ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
converting help for package 'mecor'
finding HTML links ... done
mecor-package html
uaetrial html
uaetrial_cal html
** building package indices
** installing vignettes
Warning in file(con, "w") :
cannot open file '\\vf-d2-home/d2home$/lnab/MyDocs/R/win-library/3.4/mecor/doc/index.html': …Run Code Online (Sandbox Code Playgroud)