[R] R & bash script
Romain Francois
francoisromain at free.fr
Fri Feb 18 23:16:26 CET 2005
Le 18.02.2005 22:52, Christian Schulz a écrit :
> Hi
>
> how is it possible to use more than one command when i'm
> didn't want use R CMD BATCH for specific reason?
>
> $ echo "(x<-1:10)" | R --vanilla
> works
>
> $ echo "(x<-1:10 ;y<-20:30 ;lm(y ~ x))" | R --vanilla
> works not.
>
The following works for me:
echo "x<-1:10 ;y<-21:30 ;lm(y ~ x)" | R --vanilla
Romain
> Is it further possible using bash variables like $i from a loop
> in the bash echo call i.e. dm$x$i$k <-
> read.data("dmdata$x$i$k.dat",header=T)
>
> many thanks for a starting point!
> christian
>
--
Romain FRANCOIS : francoisromain at free.fr
page web : http://addictedtor.free.fr/ (en construction)
06 18 39 14 69 / 01 46 80 65 60
_______________________________________________________
Etudiant en 3eme année
Institut de Statistique de l'Université de Paris (ISUP)
Filière Industrie et Services
http://www.isup.cicrp.jussieu.fr/
More information about the R-help
mailing list