What is the command-line knitr equivalent of R CMD Sweave myfile.rnw
?
R CMD knit file.Rmd
is the direct equivalent to R CMD Sweave file.Rmd
Lately, there are enhanced functions in rmarkdown and knitr for this kind of dirty work. For slides, I've been using the Rmarkdown YAML header to designate the intended output format and the command line is basic, like
R -e "library(rmarkdown); render(\"file.Rmd\")"