Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HenrikBengtsson opened this issue Mar 20, 2016 · 2 comments
Open

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

HenrikBengtsson opened this issue Mar 20, 2016 · 2 comments

Comments

@HenrikBengtsson
Copy link
Contributor

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
@mllg
Copy link
Member

mllg commented Mar 25, 2016

We agreed on a feature freeze of BatchJobs and will probably only do maintenance release from now on.

If you are feeling adventurous, you can give the (still unofficial) successor of BatchJobs/BatchExperiments a try (https://github.com/mllg/batchtools). I've already added a string option for the ClusterFunction constructors there.

@HenrikBengtsson
Copy link
Contributor Author

@mllg, interesting and surprising.

May I suggest that you create a separate issue clarifying this and why, and what you're plans are, ETAs etc? I can see there will be some concerns and you might want to provide a place for folks to raise and discuss them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants