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

From: Dirk Eddelbuettel <edd_at_debian.org>
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 <r-bugs@r-project.org>.
edd@basebud:~$

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
edd@basebud:~$

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 http://www.gnu.org/copyleft/gpl.html.

edd@basebud:~$

Dirk

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.