Skip to content

Commit ee6de28

Browse files
committed
minor cleaning
1 parent c87d9ba commit ee6de28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/zzz.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ brmsfit_example$fit@stanmodel <- new("stanmodel")
1818

1919
new_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), "} \nmodel {} \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)

0 commit comments

Comments
 (0)