Skip to content

batchtools templates: resources[["asis"]] for as-is declarations #78

Open
@HenrikBengtsson

Description

@HenrikBengtsson

Issue

There is no standard for how batchtools resources are used in the batchtools templates. This means that we all have slightly different templates and ways to declare the resources argument.

Suggestion

I'd like to suggest that we could reserve resources[["asis"]] to mean "use these strings as-is CLI options/declaration for the scheduler". This would work the same for all templates and would allow the user to pass arbitrary options to the scheduler (via declaration comments).

For example,

asis <- c("-pe smp 2", "-R yes")
plan(batchtools_sge, resources = list(asis = asis, mem_free="1G"))

should be result in the following SGE declarations in the template:

#$ -pe smp 2
#$ -R yes
#$ -l mem_free=1G

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions