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': [EMAIL PROTECTED]:~$ R --help | tail -5 Please use 'R CMD command --help' to obtain further information about the usage of 'command'. Report bugs to <[EMAIL PROTECTED]>. [EMAIL PROTECTED]:~$ yet what we get is an error: [EMAIL PROTECTED]:~$ 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 [EMAIL PROTECTED]:~$ On the other hand: [EMAIL PROTECTED]:~$ R CMD INSTALL --help | head -2 Usage: R CMD INSTALL [options] pkgs [EMAIL PROTECTED]:~$ 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. [EMAIL PROTECTED]:~$ 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.