doPlots <- TRUE; doPdflatex <- TRUE ##default settings
args <- commandArgs(TRUE)
if (length(args)>0) {
eval(parse(text=args[1]))
}The idea is that, since we using R's reflection mechanism, we can change the variables from the command-line.
Rscript fix-multiple.R "doPlots=FALSE; doPdflatex=FALSE"
(You could also theoretically write code that actually does stuff, but that would be strange)
(no subject)
Date: 2010-03-27 09:04 pm (UTC)