Re: [R] Detecting startup flags from within R.

2009-02-19 Thread Barry Rowlingson
2009/2/19 Rolf Turner : > > > Is there a way to detect from within R whether, e.g., R has been > started with the --no-restore-data flag set? So as to be able > to invoke code along the following lines: > >if( --no-restore-data flag set) { >do something >} else { >

[R] Detecting startup flags from within R (never mind, I figured it out).

2009-02-19 Thread Rolf Turner
Just after sending my inquiry I found the answer myself: Use commandArgs(). Duh! Sorry for wasting bandwidth. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{d

[R] Detecting startup flags from within R.

2009-02-19 Thread Rolf Turner
Is there a way to detect from within R whether, e.g., R has been started with the --no-restore-data flag set? So as to be able to invoke code along the following lines: if( --no-restore-data flag set) { do something } else { do something else