Internal function for the rSubmitter package Tries executing a command up to n times while the execution returns a non-zero exit status. Useful when trying to automatically submmit a job and the scheduler has problems, then this will try several times if submission fails for any reason

systemSubmit(command, n = 5, wait = 5, ignore.stdout = TRUE,
  ignore.stderr = F, intern = TRUE, stopIfFailed = TRUE, verbose = F,
  ...)

Arguments

command

Character - system command to execute

n

Integer - number of times to try executing command in case it returns a non-zero exit status

wait

Integer - time in seconds to wait before trying executing the command again

ignore.stdout

Logical - if TRUE it won't return the standard output of execution

ignore.stderr

Logical - if TRUE it won't return the standard error of execution

intern

Logical - see ?system

stopIfFailed

Logical, if TRUE throws error after all tries have failed, else throws a warning

...

to be passed to system()

Value

system return object - see ?system