Re: [R] Sweave, R and complex latex projects

From: Dirk Eddelbuettel <>
Date: Mon 16 Oct 2006 - 13:51:08 GMT

On 16 October 2006 at 11:28, Friedrich Leisch wrote:
| >>>>> On Sat, 14 Oct 2006 16:04:50 -0700,
| >>>>> Deepayan Sarkar (DS) wrote:
| > %.tex: %.Rnw
| > echo "library(tools); Sweave('$<')" | ${R_PROG} --vanilla --silent
| Note that we now have R CMD Sweave (new in R 2.4.0) for this purpose.

It would have been nice if that followed convention and responded to --help as suggested by 'R --help':

edd@basebud:~$ R --help | tail -5

Please use 'R CMD command --help' to obtain further information about the usage of 'command'.

Report bugs to <>.

yet what we get is an error:

edd@basebud:~$ R CMD Sweave --help
> library("utils"); Sweave("--help")
Writing to file --help.tex
Processing code chunks ...
Error in SweaveReadFile(file, syntax) : no Sweave file with name '--help' found Execution halted

On the other hand:

edd@basebud:~$ R CMD INSTALL --help | head -2 Usage: R CMD INSTALL [options] pkgs

edd@basebud:~$ R --version
R version 2.4.0 (2006-10-03)
Copyright (C) 2006 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License. For more information about these matters, see



Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Oct 16 23:57:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 16 Oct 2006 - 14:30:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.