Re: R-beta: scripting with R?

Zivan Karaman (zk@biocem.univ-bpclermont.fr)
Thu, 07 May 1998 15:07:41 +0200


Message-Id: <3.0.5.32.19980507150741.008fa100@biocem.univ-bpclermont.fr>
Date: Thu, 07 May 1998 15:07:41 +0200
To: Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at>,
From: zk@biocem.univ-bpclermont.fr (Zivan Karaman)
Subject: Re: R-beta: scripting with R?
In-Reply-To: <13649.37796.529086.598899@galadriel.ci.tuwien.ac.at>

At 12:57 07/05/98 +0200, you wrote:
>
>Yes, you simply have to redirect the input of R from stdin to a file,
>i.e.,
>
>	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.
>
>Best,
>
>-------------------------------------------------------------------
>                        Friedrich  Leisch                            =20
>Institut f=FCr Statistik                      Tel: (+43 1) 58801 4546
>Technische Universit=E4t Wien                 Fax: (+43 1)  504 14 98
>Wiedner Hauptstra=DFe 8-10/1071      Friedrich.Leisch@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)
dump("x","x.out")
q()=20

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

Regards

Zivan
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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._