Skip to content

WISH: makeClusterFunctionsTorque("<brew string>") #113

@HenrikBengtsson

Description

@HenrikBengtsson

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions