diff options
Diffstat (limited to 'R/mkinfit.R')
-rw-r--r-- | R/mkinfit.R | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R index a6efc858..e482285d 100644 --- a/R/mkinfit.R +++ b/R/mkinfit.R @@ -479,6 +479,10 @@ mkinfit <- function(mkinmod, observed, solution_type = "analytical" } else { if (!is.null(mkinmod$cf) & use_compiled[1] != FALSE) { + try_dynlib <- try(inline::getDynLib(mkinmod$cf)[["path"]]) + if (inherits(try_dynlib, "try-error")) { + mkinmod$cf <- inline::readDynLib(mkinmod$cf_name, mkinmod$cf_dir) + } solution_type = "deSolve" } else { if (is.matrix(mkinmod$coefmat)) { |