# view the current options
bmm_options()
# change the options to always sort the data and to use parallel sampling
bmm_options(sort_data = TRUE, parallel = TRUE)
# restore the default options
bmm_options(reset_options = TRUE)
# you can change the options using the options() function as well
options(bmm.sort_data = TRUE, bmm.parallel = TRUE)
bmm_options()
# reset the options to their default values
bmm_options(reset_options = TRUE)
# bmm_options(sort_data = TRUE, parallel = TRUE) will also return the old options
# so you can use it with on.exit()
old_op <- bmm_options(sort_data = TRUE, parallel = TRUE)
on.exit(bmm_options(old_op))
bmm_options(reset_options = TRUE)
Run the code above in your browser using DataLab