qsub_function: make function for qsub a job and watch progress

Description Usage Arguments Value

View source: R/jobwatch.R

Description

Short hand of creating a function doing qsub with watch = TRUE. The created function has a dammy argument which has no effect.

Usage

1
2
3
4
5
6
qsub_function(..., script_path, script_dir = NA_character_,
  name = NA_character_, first_line = binbash(),
  parallel = parallel_option(), arrayjob = arrayjob_option(),
  directory = directory_option(), use_bash_profile = TRUE,
  other_req = character(0), recursive = FALSE, add_time = TRUE,
  qsub_args = "", jobwatch_args = list())

Arguments

...

Your codes (default: bash codes). Each argument should be a character vector. Multiple arguments and multiple elements will be separated with a line break.

script_path

A character. The path to write a file.

script_dir

A character. It will concatenated with file_path..

name

A character

first_line

A character. It is written in the first line.

parallel

A character

arrayjob

A character

directory

A character

use_bash_profile

A logical. Whether source ~/.bash_profile or not.

other_req

A character. Other requirements for qsub

recursive

A logical. Whether make parent directory recursively when it does NOT exist.

add_time

A logical. Whether add the time you execute this function to path for unique naming.

qsub_args

Additional arguments for qsub.

jobwatch_args

A list. Elements are passed to watch

Value

A function which has a dammy argument


DrRes/jobwatcher documentation built on Aug. 29, 2019, 5:50 a.m.