powered by
Submit R script
bsub_script(script, argv = "", name = NULL, hours = 1, memory = 1, cores = 1, R_version = bsub_opt$R_version, temp_dir = bsub_opt$temp_dir, output_dir = bsub_opt$output_dir, dependency = NULL, enforce = bsub_opt$enforce, local = bsub_opt$local, sh_head = bsub_opt$sh_head, ...)
The R script.
A string of command-line arguments.
If name is not specified, an internal name calculated by digest is automatically assigned.
digest
Running time of the job.
Memory usage of the job. It is measured in GB.
Number of cores.
R version.
Path of temporary folder where the temporary R/bash scripts will be put.
Path of output folder where the output/flag files will be put.
A vector of job IDs that current job depends on.
If a flag file for the job is found, whether to enforce to rerun the job.
Run job locally (not submitting to the LSF cluster)?
Commands that are written as head of the sh script.
Command-line arguments can also be specified as name-value pairs.
Job ID.
bsub_chunk submits R code.
bsub_chunk
bsub_cmdsubmits shell commands.
bsub_cmd
# NOT RUN { bsub_script("/path/of/foo.R", name = ..., memory = ..., cores = ..., ...) # with command-line arguments bsub_script("/path/of/foo.R", argv = "--a 1 --b 3", ...) # }
Run the code above in your browser using DataLab