On 22/03/2016 1:08 PM, Jan Kacaba wrote:
Hello, is it possible to run kiniter by script instead by clicking on
button compile PDF?
Say I have "texfile.rnw" and "myscript.R". I would like to knit texfile.rnw
by runnig script "myscript.R".
In "myscript.R" I would write something like this:
knit("texfile.rnw")
That exact command works. It will produce a .tex file; if you want to
continue on to produce a PDF, you need
knit2pdf("texfile.rnw")
instead.
Duncan Murdoch
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.