-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
If makeClusterFunctionsTorque() et al. would accept a brew string as input (as an alternative to a pathname as now), one could make .BatchJobs.R self contained (one file instead of two is easier to keep track off and share), e.g.
cluster.functions <- makeClusterFunctionsTorque('
## Job name
#PBS -N <%= job.name %>
## Merge standard error and output:
#PBS -j oe
## Direct streams to our logfile:
#PBS -o <%= log.file %>
## Resources needed:
<% if (length(resources) > 0) {
opts <- unlist(resources, use.names=TRUE)
opts <- sprintf("%s=%s", names(opts), opts)
opts <- paste(opts, collapse=",") %>
#PBS -l <%= opts %>
<% } %>
## Run R:
Rscript --verbose "<%= rscript %>"
')
staged.queries <- TRUE