Run R Scripts Parallel with System Control

parallel_rscripts(
  rscript_path,
  args,
  used_memory_treshold = 75,
  used_cpu_treshold = 75,
  sleep_time = 10,
  swap = 8,
  process = F
)

Arguments

rscript_path

path of rscript.

args

input arguments of rscript.

used_memory_treshold

upper bound for memory usage

used_cpu_treshold

upper bound for CPU usage

sleep_time

sleep time between two jobs in seconds

swap

server swap memory in GB

process

Boolean variable to see function messages

Value