diff --git a/R/model.R b/R/model.R index 1fe14615f..7d3b1289a 100644 --- a/R/model.R +++ b/R/model.R @@ -268,6 +268,10 @@ CmdStanModel <- R6::R6Class( assert_file_exists(private$exe_file_, access = "r", extension = ext) private$model_name_ <- sub(" ", "_", strip_ext(basename(private$exe_file_))) } + if (!is.null(args$include_paths)) { + private$include_paths_ <- args$include_paths + private$precompile_include_paths_ <- args$include_paths + } } if (!is.null(stan_file) && compile) { self$compile(...) @@ -2372,4 +2376,4 @@ resolve_exe_path <- function( exe <- self_exe_file } exe -} \ No newline at end of file +}