R-beta: scripting with R?

Zivan Karaman zk at biocem.univ-bpclermont.fr
Thu May 7 15:07:41 CEST 1998

At 12:57 07/05/98 +0200, you wrote:
>Yes, you simply have to redirect the input of R from stdin to a file,
>	R [--save|--no-save] < cmdfile
>reads the commands in cmdfile as if they were typed at the prompt. You
>have to specify --save or --no-save, stating wether the environment
>should be saved to the .RData file upon exiting.
>                        Friedrich  Leisch                             
>Institut für Statistik                      Tel: (+43 1) 58801 4546
>Technische Universität Wien                 Fax: (+43 1)  504 14 98
>Wiedner Hauptstraße 8-10/1071      Friedrich.Leisch at ci.tuwien.ac.at
>A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
>     PGP public key http://www.ci.tuwien.ac.at/~leisch/pgp.key

Does it work (and how) under Windows? (I'm using the version compiled by
Guido Masarotto on an NT4 machine).

I'v tried, but the screen flashes for a second, and nothing happens.
My cmdfile is very simple:
x <- rnorm(100)

The "x.out" file is NOT created. I'v tried the --save and --no-save, but
result is the same. Source-ing the same cmdfile works as expected.

When trying with Rsept.exe, I get the message "erno was 1411".

Thanks for any help


Zivan Karaman
Limagrain Genetics Research, B.P. 115, 63203 Riom Cedex, France
Tel: +33 (0) 473 634 343     Fax: +33 (0) 473 634 345
E-mail: zivan.karaman at biocem.univ-bpclermont.fr
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list