R/Rnohup.R

Defines functions Rnohup

Documented in Rnohup

#' @title submit a bash commands on server background
#' @param command character vector of the R command used.
#' @param bashname the prefix name of files saved under bash.
#'
Rnohup <-
  function(command, bashname = "X") {

    writeLines(command,bashname)

    system(paste0("chmod +x ", bashname))

    outname <- gsub(".sh$",".out",bashname)

    system(paste0("nohup ", bashname, " > ", outname, " &"))

}
ZW-xjtlu/exomePeak2Test documentation built on Jan. 6, 2020, 3:36 p.m.