[R] How to set R_PROFILE conditional on batch or interactive mode
Rolf Turner
r.turner at auckland.ac.nz
Thu Mar 19 20:00:57 CET 2009
On 20/03/2009, at 5:46 AM, Lyman, Mark wrote:
> I am running R 2.8.1 on SUSE Linux. I would like to be able to set
> R_PROFILE to two different possibilities. One when R is called by R
> CMD
> BATCH and another any other time. Is this possible?
I think so. In your .Rprofile have code like unto:
if(interactive()) {
# Do the non-batch thing
} else {
# Do the batch thing.
}
Haven't tested this, but.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list