Description Usage Arguments See Also Examples
Apply a Function over a List or Vector on a gridengine system!
1 2 3 4 5 6 7 8 9  | qsub_lapply(
  X,
  FUN,
  object_envir = environment(FUN),
  qsub_config = NULL,
  qsub_environment = NULL,
  qsub_packages = NULL,
  ...
)
 | 
X | 
 A vector (atomic or list) or an expression object. Other objects (including classed objects) will be coerced by base::as.list.  | 
FUN | 
 The function to be applied to each element of X.  | 
object_envir | 
 The environment in which to go looking for the qsub_environment variables, if these are characters.  | 
qsub_config | 
 The configuration to use for this execution.  | 
qsub_environment | 
 
  | 
qsub_packages | 
 The packages to be loaded on the cluster.  | 
... | 
 optional arguments to FUN.  | 
create_qsub_config, set_default_qsub_config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31  | ## Not run: 
# Initial configuration and execution
qsub_config <- create_qsub_config(
  remote = "myserver",
  local_tmp_path = "/home/myuser/workspace/.r2gridengine",
  remote_tmp_path = "/scratch/myuser/.r2gridengine"
)
qsub_lapply(
  X = seq_len(3),
  FUN = function(i) { Sys.sleep(1); i+1 },
  qsub_config = qsub_config
)
# Setting a default configuration and short hand notation for execution
set_default_qsub_config(qsub_config, permanent = T)
qsub_lapply(seq_len(3), function(i) { Sys.sleep(1); i+1 })
# Overriding a default qsub_config
qsub_lapply(seq_len(3), function(i) i + 1,
  qsub_config = override_qsub_config(name = "MyJob"))
# Don't wait for results, get a handle instead and retrieve later.
handle <- qsub_lapply(seq_len(3), function(i) i + 1,
  qsub_config = override_qsub_config(wait = F))
# Wait until results have been generated on the remote
# Retrieve results
qsub_retrieve(handle)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.