[ESS] ESS, knitr, Rmarkdown

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Tue Nov 4 17:14:36 CET 2014

> Makefiles are cool, but only if you are a guru.  Most people probably
> want an easier solution.  I've tried to create a one-click method of
> processing Rnw to pdf, by stringing together a couple of the ess
> functions into a "compile Rnw to PDF" function, but I ran into
> problems.  If I recall, it seems like ess launched Mixtex before R
> finished generation the tex file.

Miktex makes me think you are on Windows.  But all I have in my
makefiles is normally things like:

estimatek.pdf: estimatek.Rnw
	Rscript -e "knitr::knit2pdf('estimatek.Rnw')"

	rm -fr estimatek.pdf cache

More information about the ESS-help mailing list