From 989ddaf4276d9c6d4b264683955e7a831e43e195 Mon Sep 17 00:00:00 2001 From: jgabry Date: Mon, 2 Jun 2025 13:38:44 -0600 Subject: [PATCH] use includes in subdirectories for pre-compiled models Fixes #1094 --- R/model.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +}