What is the command-line knitr equivalent of R CMD Sweave myfile.rnw?
What is the command-line knitr equivalent of R CMD Sweave myfile.rnw ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The general solution (works regardless of the R version):
Since R 3.1.0,
R CMD Sweavehas started to support non-Sweave documents (although the command name sounds a little odd), and the only thing you need to do is to specify a vignette engine in your document, e.g.To see the possible vignette engines in knitr, use