سؤال

I'm looking forward to getting my hands on an update of Yihui Xie's knitr package that includes a new chunk option (collapse). I'm trying to install the development version from github but am getting an error. I'm using:

install_github("knitr", 'yihui')

And get the error:

Error: processing vignette 'datatables.Rmd' failed with diagnostics:
unused argument (encoding = encoding)
Execution halted
Error: Command failed (1)

I see a discussion of this issue at: https://github.com/yihui/knitr/issues/398 where the suggestion is to update the evaluate package. I've updated the evaluate package successfully and I also updated the devtools package successfully. Below is my sessionInfo().

Anyone have a suggestion?

ZR

R version 3.0.2 (2013-09-25)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_1.5    evaluate_0.5.2  RPostgreSQL_0.4 DBI_0.2-7      

loaded via a namespace (and not attached):
 [1] assertthat_0.1 digest_0.6.4   dplyr_0.1.2    formatR_0.10   httr_0.2      
 [6] knitr_1.5      memoise_0.1    parallel_3.0.2 Rcpp_0.11.0    RCurl_1.95-4.1
[11] stringr_0.6.2  tools_3.0.2    whisker_0.3-2 
هل كانت مفيدة؟

المحلول

If you install the development version of knitr, just follow the instructions for installation in the README file on Github.

For this particular problem, it was caused by an insufficient version of the markdown package at that time, but now the new version of markdown is on CRAN, so just run update.packages(ask = FALSE) and you should be able to install knitr from Github. You do not really need to know these details if you install from RForge as mentioned in the instructions.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top