R/performShotgunCovarSearch.R

Defines functions performShotgunCovarSearch

Documented in performShotgunCovarSearch

#' Shotgun covariate search
#'
#' Runs a set of possible covariate sets in parallel
#'
#' @param args a vector of arguments provided as the following:
#' c(jobType, parallelMethod, install_dir, shared_directory,
#' localWorkingDir, controlFile, NumProc, workflow_name, fixefUnits)
#' @param reportProgress whether it is required to report the progress
#' (for local jobs usually)
#' @return Directory path where NLME job was executed
#' @keywords NLME ShotgunCovariateSearch
#' @export
performShotgunCovarSearch <- function(args, reportProgress = FALSE) {
  if (args[1] != "COVAR_SEARCH") {
    stop(
      "please check the args for performShotgunCovarSearch(),",
      "\n the first one is not valid."
    )
  }

  if (length(args) < 8) {
    check_Arguments(requiredargs, args, "performShotgunCovarSearch")
  }

  rm(list = ls(envir = nlmeEnv), envir = nlmeEnv)
  performParallelNLMERun(args = args, reportProgress = reportProgress)
}

Try the Certara.NLME8 package in your browser

Any scripts or data that you put into this service are public.

Certara.NLME8 documentation built on Oct. 16, 2024, 1:09 a.m.