2009/2/19 Rolf Turner <r.tur...@auckland.ac.nz>: > > > 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 > } > > Thanks for any assistance.
?commandArgs > "--no-restore-data" %in% commandArgs() [1] TRUE or false if I hadn't started it with that arg... Barry ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.