[Rd] Sweave provides a misleading error when vignette engine not fully specified

Martin Morgan mtmorgan at fhcrc.org
Wed Mar 5 17:38:56 CET 2014

Trying to Stangle / Sweave a file

$ cat vignette.Rnw

results in a misleading error message:

~/tmp$ R CMD Stangle vignette.Rnw
Error: Vignette engine package not specified
Execution halted

when what is missing is the full specification knitr::knitr; 'vignette engine 
package and function not specified' ? Also it's somehow unfortunate that the 
vignette builds when in a package/vignettes directory, but not as a stand-alone 

Also for what its worth Sweave'ing still fails to produce graphics output


$ R --version|head -n 3
R Under development (unstable) (2014-03-05 r65124) -- "Unsuffered Consequences"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793

More information about the R-devel mailing list