File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ brmsfit_example$fit@stanmodel <- new("stanmodel")
1818
1919new_stan_functions <- function () {
2020 # copy all new stan functions into a single .stan file and compile it
21- chunk_filenames <- list.files( system.file(" chunks" , package = " brms" ),
22- pattern = " ^fun_" )
21+ isystem <- system.file(" chunks" , package = " brms" )
22+ chunk_filenames <- list.files( isystem , pattern = " ^fun_" )
2323 families <- list (cumulative(" probit" ), sratio(" logit" ),
2424 cratio(" cloglog" ), acat(" cauchit" ))
2525 partial <- c(rep(FALSE , 2 ), rep(TRUE , 2 ))
@@ -30,7 +30,6 @@ new_stan_functions <- function() {
3030 collapse(" #include '" , chunk_filenames , " ' \n " ),
3131 collapse(ordinal_funs ), " } \n model {} \n " ),
3232 file = temp_file )
33- isystem <- system.file(" chunks" , package = " brms" )
3433 model <- rstan :: stanc_builder(file = temp_file , isystem = isystem ,
3534 obfuscate_model_name = TRUE )
3635 rstan :: stan_model(stanc_ret = model )
You can’t perform that action at this time.
0 commit comments