[Rd] vignette output: word_document problems

Spencer Graves spencer.graves at prodsyse.com
Sat Jun 18 04:50:47 CEST 2016


Hello:


        Clicking "Knit Word" in RStudio 0.99.893 with R 3.3.0, works 
fine with a vignette with "output: word_document".  However, "R CMD 
build" throws the following error:


$ R CMD build pkgW2vignettes
* checking for file ‘pkgW2vignettes/DESCRIPTION’ ... OK
* preparing ‘pkgW2vignettes’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... ERROR
Error: processing vignette 'vignette2word_document.Rmd' failed with 
diagnostics:
Failed to locate the ‘weave’ output file (by engine ‘knitr::rmarkdown’) 
for vignette with name ‘vignette2word_document’. The following files 
exist in directory ‘.’: ‘vignette1createsObject1.R’, 
‘vignette1createsObject1.Rmd’, ‘vignette1createsObject1.html’, 
‘vignette2confusedByObject1.R’, ‘vignette2confusedByObject1.Rmd’, 
‘vignette2confusedByObject1.html’, ‘vignette2word_document.Rmd’, 
‘vignette2word_document.docx’
Execution halted


        A toy example showing this problem is in rev. 239 of 
"vignette2word_document.Rmd" in "pkgW2vignettes" on R-Forge 
(https://r-forge.r-project.org/R/?group_id=235).


        Is there a way to get "R CMD build" to work with a vignette with 
output: word_document?


        Thanks,
        Spencer Graves


pkgW2vignettes


I can knit
with a vignette using RStudio 0.99.893 with R 3.3.0, I can knit




  > sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.5 (El Capitan)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] WriteXLS_4.0.0 sos_1.3-8      brew_1.0-6

loaded via a namespace (and not attached):
[1] htmltools_0.3.5 tools_3.3.0     yaml_2.1.13
[4] Rcpp_0.12.5     rmarkdown_0.9.6 knitr_1.13
[7] digest_0.6.9
  >



More information about the R-devel mailing list