On Thu, 29 Apr 2004, Ladelund, Steen wrote:
> Hi all.
>
> To automate the production of a document I want to have something like:
>
> test.tex : test.Rnw
> "Sweave("test.Rnw") "| R --no-restore --no-save
>
> in a makefile.
>
> This however gives an error as R states: Sweave("test.Rnw") : not found.
>
> I use R-1.9.0pat (040424 I think) on Win XP.
>
> Any suggestions, hints or plain help appreciated.
Look at the examples in the makefiles in the R sources, and beware of
shell quoting. So
echo "Sweave('test.Rnw')" | Rterm.exe --vanilla --slave
may be the simplest. (I would avoid using `R' in programming as it may
well find the wrong thing one day.)
--
Brian D. Ripley, [EMAIL PROTECTED]
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html