[R] thanks
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Tue Jan 11 16:40:17 CET 2005
Cserháti Mátyás <cs_matyi at freemail.hu> writes:
> Dear all,
>
> Thanks to those 3 people who sent me answers to my question. Got
> the problem solved. Great!
>
> Now, another question of mine is:
>
> I would like to run an R script from the Linux prompt. Is there any way
> possible to do this? The reason is, the calculation that I'm doing takes a
> few hours, and I would like to automatize it.
>
> Or does it mean that I have to run source within the R prompt?
>
> Or is there a way to do the automatization within the R prompt?
This could be what you are looking for:
R CMD BATCH myfile.R
or maybe
R --vanilla < myfile.R
both possibly followed by "&" to execute them in the background.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list