stanmodels.R (prophet-1.0) | : | stanmodels.R (prophet-1.1) | ||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
stanfit <- rstan::stanc_builder(stan_file, | stanfit <- rstan::stanc_builder(stan_file, | |||
allow_undefined = TRUE, | allow_undefined = TRUE, | |||
obfuscate_model_name = FALSE) | obfuscate_model_name = FALSE) | |||
stanfit$model_cpp <- list(model_cppname = stanfit$model_name, | stanfit$model_cpp <- list(model_cppname = stanfit$model_name, | |||
model_cppcode = stanfit$cppcode) | model_cppcode = stanfit$cppcode) | |||
# create stanmodel object | # create stanmodel object | |||
methods::new(Class = "stanmodel", | methods::new(Class = "stanmodel", | |||
model_name = stanfit$model_name, | model_name = stanfit$model_name, | |||
model_code = stanfit$model_code, | model_code = stanfit$model_code, | |||
model_cpp = stanfit$model_cpp, | model_cpp = stanfit$model_cpp, | |||
mk_cppmodule = function(x) get(paste0("model_", model_name))) | mk_cppmodule = function(x) get(paste0("rstantools_model_", model_ name))) | |||
}) | }) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |