R/get_runtime.R

Defines functions get_runtime

get_runtime <- function(nlme7engineLines) {
  runtimeLine <- nlme7engineLines[grep("engine runtime", nlme7engineLines)]
  if (length(runtimeLine) > 0) {
    runtime <-
      as.numeric(unlist(strsplit(runtimeLine, split = "="))[[2]])
  } else {
    runtime <- "na"
  }

  runtime
}

Try the Certara.Xpose.NLME package in your browser

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

Certara.Xpose.NLME documentation built on April 3, 2025, 7:45 p.m.