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().")
  }
}

Try the PKPDsim package in your browser

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

PKPDsim documentation built on March 7, 2023, 5:40 p.m.