R/test_pointer.R

Defines functions test_pointer

Documented in test_pointer

#' Test if model still in memory
#' @param model pointer to model
#' @export
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().")
  }
}
ronkeizer/PKPDsim documentation built on May 27, 2019, 1:50 p.m.