[R-SIG-Mac] R --vanilla --slave

Thomas Lumley tlumley at u.washington.edu
Mon May 10 18:53:40 CEST 2004


On Mon, 10 May 2004, Andrew Beckerman wrote:

> I am trying to use the following syntax (so I can submit R scripts to
> an X-grid cluster if anyone is interested):
>
> dyn094076:~ apb$ R --vanilla --slave <test.R> test.txt
>
> to run the following script
>
> #test.R
> write(rnorm(4)," ")

This writes to a file whose name is a single space. I think you mean
 write(rnorm(4),"")

	-thomas

> q()
>
> as suggested in
> http://finzi.psych.upenn.edu/R/Rhelp02a/archive/20955.html
>
> The script is a BBedit file called test.R, is in my home and fails by
> producing a blank text file.
> I have also tried including the file="test.txt" addition in the write()
> function, and leaving out the # line, which results with the R startup
> verbiage being printed to the file, but no data.
>
> Is there an OS X method for this? Am I missing something (probably)?
> many thanks for the help.
>
> Andrew
>
> ------------------------------------------------------------------------
> ---------
> Dr. Andrew Beckerman
> Department of Animal and Plant Sciences, University of Sheffield,
> Alfred Denny Building, Western Bank, Sheffield S10 2TN, UK
> ph +44 (0)114 222 0026; fx +44 (0)114 222 0002
> http://www.shef.ac.uk/beckslab
> ------------------------------------------------------------------------
> ----------
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-SIG-Mac mailing list