File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ CmdStanModel <- R6::R6Class(
234
234
precompile_stanc_options_ = NULL ,
235
235
precompile_include_paths_ = NULL ,
236
236
variables_ = NULL ,
237
- cmdstan_version_ = cmdstan_version()
237
+ cmdstan_version_ = NULL
238
238
),
239
239
public = list (
240
240
functions = NULL ,
@@ -272,6 +272,12 @@ CmdStanModel <- R6::R6Class(
272
272
if (! is.null(stan_file ) && compile ) {
273
273
self $ compile(... )
274
274
}
275
+
276
+ # for now, set this based on current version
277
+ # at initialize so its never null
278
+ # in the future, will be set only if/when we have a binary
279
+ # as the version the model was compiled with
280
+ private $ cmdstan_version_ <- cmdstan_version()
275
281
if (length(self $ exe_file()) > 0 && file.exists(self $ exe_file())) {
276
282
cpp_options <- model_compile_info(self $ exe_file(), self $ cmdstan_version())
277
283
for (cpp_option_name in names(cpp_options )) {
You can’t perform that action at this time.
0 commit comments