R/test_pointer.R

Defines functions test_pointer

Documented in test_pointer

#' Test if model still in memory
#' @param model pointer to model
#' @export
#' @return No return value
test_pointer <- function(model) {
  tmp <- utils::capture.output(model)
  if(length(grep("0x0>", tmp[2])) > 0) {
    stop("Model not in memory anymore. Please recompile using new_ode_model().")
  }
}
InsightRX/PKPDsim documentation built on July 4, 2025, 2:01 a.m.