Running examples in ‘MPTmultiverse-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: fit_mpt
> ### Title: Multiverse Analysis for MPT Models
> ### Aliases: fit_mpt
> 
> ### ** Examples
> 
> 
> # ------------------------------------------------------------------------------
> # MPT model definition & Data
> 
> EQN_FILE <- system.file("extdata", "prospective_memory.eqn", package = "MPTmultiverse")
> DATA_FILE <- system.file("extdata", "smith_et_al_2011.csv", package = "MPTmultiverse")
> 
> ### if .csv format uses semicolons ";" (e.g., German format):
> # data <- read.csv2(DATA_FILE, fileEncoding = "UTF-8-BOM")
> ### if .csv format uses commata "," (international format):
> data <- read.csv(DATA_FILE, fileEncoding = "UTF-8-BOM")
> data <- data[c(1:10, 113:122),]  ## select only subset of data for example
> head(data)
  WM_EX PM1 Yes1 No1 PM2 Yes2 No2 PM3 Yes3 No3 PM4 Yes4 No4
1     1   5    3   0   8    0   0   0  114   2   0    0 116
2     1   5    3   0   6    2   0   0  115   1   0    5 111
3     1   1    7   0   3    0   5   1  108   7   2    7 107
4     1   8    0   0   7    0   1   0  111   5   0    4 112
5     1   4    4   0   1    1   6   1  110   5   2   10 104
6     1   2    6   0   0    0   8   0  115   1   0    2 114
> 
> COL_CONDITION <- "WM_EX"  # name of the variable encoding group membership
> 
> # experimental condition should be labeled meaningfully ----
> unique(data[[COL_CONDITION]])
[1] 1 2
> 
> data[[COL_CONDITION]] <- factor(
+   data[[COL_CONDITION]]
+   , levels = 1:2
+   , labels = c("low_WM", "high_WM")
+ )
> 
> # define core parameters:
> CORE <- c("C1", "C2")
> 
> ## Not run: 
> ##D op <- mpt_options() 
> ##D ## to reset default options (which you would want) use:
> ##D mpt_options("default")
> ##D 
> ##D mpt_options() # to see the settings 
> ##D ## Note: settings are also saved in the results tibble
> ##D   
> ##D ## without specifying method, all are used per default
> ##D fit_all <- fit_mpt(
> ##D   model = EQN_FILE
> ##D   , dataset = DATA_FILE
> ##D   , data = data
> ##D   , condition = COL_CONDITION
> ##D   , core = CORE
> ##D )
> ##D 
> ##D mpt_options(op) ## reset options  
> ## End(Not run)
> 
> load(system.file("extdata", "prospective_memory_example.rda", package = "MPTmultiverse"))
> 
> # Although we requested all 10 methods, only 9 worked:
> fit_all$method
[1] "asymptotic"         "asymptotic"         "PB/MLE"            
[4] "NPB/MLE"            "simple"             "simple"            
[7] "trait"              "trait_uncorrelated" "betacpp"           
> # Jags variant of beta MPT is missing.
> 
> # the returned method has a plot method. For example, for the group-level estimates:
> plot(fit_all, which = "est")
Error in Summary.unit(c(4.4, 4.4), na.rm = FALSE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: <Anonymous> ... render_strips -> build_strip -> ggstrip -> Summary.unit
Execution halted