create_qsub_config {qsub} | R Documentation |
Create a qsub configuration object.
Description
Create a qsub configuration object.
Usage
create_qsub_config(
remote,
local_tmp_path,
remote_tmp_path,
name = "r2qsub",
num_cores = 1,
memory = "4G",
max_running_tasks = NULL,
max_wall_time = "01:00:00",
batch_tasks = 1,
compress = c("gz", "bz2", "xz", "none"),
modules = "R",
execute_before = NULL,
verbose = FALSE,
wait = TRUE,
remove_tmp_folder = TRUE,
stop_on_error = TRUE
)
override_qsub_config(
qsub_config = get_default_qsub_config(),
remote = qsub_config$remote,
local_tmp_path = qsub_config$local_tmp_path,
remote_tmp_path = qsub_config$remote_tmp_path,
name = qsub_config$name,
num_cores = qsub_config$num_cores,
memory = qsub_config$memory,
max_running_tasks = qsub_config$max_running_tasks,
max_wall_time = qsub_config$max_wall_time,
batch_tasks = qsub_config$batch_tasks,
compress = qsub_config$compress,
modules = qsub_config$modules,
execute_before = qsub_config$execute_before,
verbose = qsub_config$verbose,
wait = qsub_config$wait,
remove_tmp_folder = qsub_config$remove_tmp_folder,
stop_on_error = qsub_config$stop_on_error
)
Arguments
remote |
Remote machine specification for ssh, in format such as |
local_tmp_path |
A directory on the local machine in which to store temporary files. Should not contain a tilde ('~'). |
remote_tmp_path |
A directory on the remote machine in which to store temporary files. Should not contain a tilde ('~'). |
name |
The name of the execution. This will show up, for instance, in |
num_cores |
The number of cores to allocate per element in |
memory |
The memory to allocate per core (default: |
max_running_tasks |
limit concurrent array job task execution (default: |
max_wall_time |
The maximum time each task is allowed to run (default: |
batch_tasks |
How many values in |
compress |
Compression method to use: |
modules |
Which modules to load (default: |
execute_before |
Commands to execute in the bash shell before running R. |
verbose |
Whether or not to print out any ssh commands. |
wait |
If |
remove_tmp_folder |
If |
stop_on_error |
If |
qsub_config |
A qsub_config to be overridden |
Value
A qsub configuration object.
See Also
qsub_lapply
, set_default_qsub_config
Examples
## Not run:
qsub_config <- create_qsub_config(
remote = "myuser@myserver.mylocation.com:22",
local_tmp_path = "/home/myuser/workspace/.r2gridengine",
remote_tmp_path = "/scratch/myuser/.r2gridengine"
)
qsub_lapply(1:10, function(x) x + 1, qsub_config = qsub_config)
set_default_qsub_config(qsub_config, permanent = TRUE)
qsub_lapply(1:10, function(x) x + 1)
qsub_lapply(
X = 1:10,
FUN = function(x) x + 1,
qsub_config = override_qsub_config(verbose = TRUE)
)
## End(Not run)