2014-09-13 10 views
7

Provo a creare fork of R package da github (questa forcella ha un fresh bugfix). Sfortunatamente, la compilazione fallisce quando TeX è mancato sul mio sistema quando tenta di creare vignette. Non voglio installare carichi di SW solo per creare vignette che non mi servono. Come posso disabilitarne la costruzione?Creazione di pacchetti R da github: come disabilitare la creazione di vignette?

Ecco come il mio compilazione andata:

> 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 CMD build "C:\Documents and Settings\Tomas\Local \ 
    Settings\Temp\Rtmpolel1d\devtools42062762938\rredis-master" --no-manual --no-resave-data 

* checking for file 'C:\Documents and Settings\Tomas\Local Settings\Temp\Rtmpolel1d\devtools42062762938\rredis-master/DESCRIPTION' ... OK 
* preparing 'rredis': 
* checking DESCRIPTION meta-information ... OK 
* cleaning src 
* installing the package to build vignettes 
* creating vignettes ...Warning: running command '"C:/PROGRA~1/R/R-31~1.0/bin/i386/Rscript" --vanilla --default-packages= -e "tools::buildVignettes(dir = '.', tangle = TRUE)"' had status 1 
ERROR 
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, : 
    pdflatex is not available 
Calls: <Anonymous> -> texi2pdf -> texi2dvi 
Execution halted 
Error: Command failed (1) 

Grazie in anticipo.

risposta

9

Wow, l'ho trovato! L'ho perso perché non è elencato nelle opzioni della funzione install_github, ma accetta tutte le altre opzioni delle funzioni install e build!

install_github("patcpsc/rredis", build_vignettes = FALSE) 
+2

BTW questo sarà il default nella prossima versione di devtools, che sarà sulla buona strada per Cran presto – hadley

+1

'build_vignettes = f' è ora il default –

Problemi correlati