R/call_exec.R

# obtain exec file from package path
obtain_exec = function(caller = c("cnv", "mutation", "indel"), out = getwd()) {
    caller = match.arg(caller)
    if (caller == "cnv") {
        caller_path = system.file("extdata/cnv_pipe.R", package = "VSHunter")
        file.copy(from = caller_path, to = out)
    } else {
        stop ("Not support for now.")
    }
}
ShixiangWang/VSHunter documentation built on June 27, 2019, 4:56 p.m.