R/md5.R

Defines functions .nlmixr2Md5

.nlmixr2Md5 <- function(obj) {
  if (!exists(".md5", obj$env)) {
    .cls <- class(obj)
    attr(.cls, ".foceiEnv") <- NULL
    .tmp <- list(
      .cls, obj$uif$ini, obj$fun.txt,
      obj$origControl
    )
    if (inherits(obj, "data.frame")) {
      .tmp <- c(.tmp, list(as.data.frame(obj)))
    }
    assign(".md5", digest::digest(.tmp), envir = obj$env)
  }
  return(obj$env$.md5)
}

Try the nlmixr2est package in your browser

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

nlmixr2est documentation built on Oct. 30, 2024, 9:23 a.m.