Skip to content

Commit

Permalink
switch bmmexamples to rstan backend
Browse files Browse the repository at this point in the history
  • Loading branch information
venpopov committed Mar 8, 2024
1 parent edb8f35 commit 16e8d0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
8 changes: 5 additions & 3 deletions tests/internal/bmmexamples.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
generate_bmm_examples <- function(seed = 123) {
withr::local_options(brms.backend = 'cmdstanr',
cmdstanr_write_stan_file_dir = "local/cmdstanr",
withr::local_options(brms.backend = 'rstan',
bmm.parallel = TRUE,
bmm.sort_data = TRUE)
withr::local_package('dplyr')
Expand All @@ -21,7 +20,8 @@ generate_bmm_examples <- function(seed = 123) {
iter = 100,
refresh = 0,
init = 1,
chains = 1)
chains = 1,
backend = 'rstan')
bmmfit_example1$bmm$fit_args$data <- NULL


Expand Down Expand Up @@ -123,3 +123,5 @@ generate_bmm_examples <- function(seed = 123) {
usethis::use_data(bmmfit_example1, bmmfit_sdm_vignette, bmmfit_mixture2p_vignette, bmmfit_imm_vignette, internal = TRUE, overwrite = TRUE)

}

generate_bmm_examples()

0 comments on commit 16e8d0b

Please sign in to comment.