[R] problem with --vanilla in R

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Jul 3 16:13:12 CEST 2006

Katrin Braesel wrote:
> Hallo,
> I'm using the R Version 2.3.0 (2006-04-24) on Suse Linux 10.1.
> With an older R and Linux version I could write a R-function into a file
>  and execute it with the command:
> R --vanilla < script.r
> In the file script.r was code like this:
> postscript(file="results.eps")
> x<-2
> y<-3
> plot(x,y)
> dev.off()
> It worked fine, but now nothing happens. In the manual page this option
> is still mentioned.
> I don't know what to do, to make it working again.

Works for me with R-2.3.1 using an appropriate shell.

Maybe you misspelled the filename or don't have write access? What 
happens after R --vanilla < script.r

BTW: I'd rather use R CMD BATCH, and I'd call the script script.R...

Uwe Ligges

> Thanks for your help.
> With kind regards,
> Katrin
> ______________________________________________
> R-help at 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

More information about the R-help mailing list