File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,11 @@ CmdStanModel <- R6::R6Class(
265
265
invisible (self )
266
266
},
267
267
include_paths = function () {
268
- private $ include_paths_
268
+ if (length(self $ exe_file()) > 0 && file.exists(self $ exe_file())) {
269
+ return (private $ include_paths_ )
270
+ } else {
271
+ return (private $ precompile_include_paths_ )
272
+ }
269
273
},
270
274
code = function () {
271
275
if (length(private $ stan_code_ ) == 0 ) {
@@ -655,13 +659,7 @@ variables <- function() {
655
659
if (is.null(private $ variables_ ) && file.exists(self $ stan_file())) {
656
660
private $ variables_ <- model_variables(
657
661
stan_file = self $ stan_file(),
658
- include_paths = {
659
- if (length(self $ exe_file()) > 0 && file.exists(self $ exe_file())) {
660
- self $ include_paths()
661
- } else {
662
- private $ precompile_include_paths_
663
- }
664
- },
662
+ include_paths = self $ include_paths(),
665
663
allow_undefined = private $ using_user_header_
666
664
)
667
665
}
You can’t perform that action at this time.
0 commit comments