run_batch | R Documentation |
This function is to allow R CMD BATCH to be called interactively, without needing to start up a command line terminal and change directories etc. It calls the R CMD BATCH from the current working directory. Hence its value is in producing the side-effects: whatever happens when the script is run. Plus a log file will be created in the working directory with the same name as the script but with the suffix changed to '.Rout'.
run_batch(filename, ...)
filename |
character string of the name or path of the script (relative to the working directory). |
... |
other arguments to pass to |
The command will not run in environments where interactive
is false, so as to prevent infinite loops.
see system
which is called.
BATCH
and rcmd
from the callr package,
which might already do this....
check_failures
from the devtools package for future ideas
for a function to check the log file for errors or warnings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.