I would like to use the evaluate
package to simulate executing (lots of) r-scripts while recording the outputs using evaluate. Evaluate is designed to do exactly this and it works almost out of the box. However, when using Rscript, the user passes arguments via the command line --args
which are retrieved in R using the base::commandArgs
function.
Is there any sensible way I can override the value of --args
from within a running R session such that an R script using base::commandArgs()
would work as expected without having to modify the script itself?