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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: sim_all
> ### Title: Is a wrapper for sim_choice executing the simulation over all
> ###   designs stored in a specific folder update
> ### Aliases: sim_all
> 
> ### ** Examples
> 
> library(rlang)
> designpath <- system.file("extdata", "SE_DRIVE", package = "simulateDCE")
> resps <- 120 # number of respondents
> nosim <- 2 # number of simulations to run (about 500 is minimum)
> 
> decisiongroups <- c(0, 0.7, 1)
> 
> # pass beta coefficients as a list
> bcoeff <- list(
+   b.preis = -0.01,
+   b.lade = -0.07,
+   b.warte = 0.02
+ )
> 
> manipulations <- list(
+   alt1.x2 = expr(alt1.x2 / 10),
+   alt1.x3 = expr(alt1.x3 / 10),
+   alt2.x2 = expr(alt2.x2 / 10),
+   alt2.x3 = expr(alt2.x3 / 10)
+ )
> 
> 
> # place your utility functions here
> ul <- list(
+   u1 =
+ 
+     list(
+       v1 = V.1 ~ b.preis * alt1.x1 + b.lade * alt1.x2 + b.warte * alt1.x3,
+       v2 = V.2 ~ b.preis * alt2.x1 + b.lade * alt2.x2 + b.warte * alt2.x3
+     ),
+   u2 = list(
+     v1 = V.1 ~ b.preis * alt1.x1,
+     v2 = V.2 ~ b.preis * alt2.x1
+   )
+ )
> 
> 
> sedrive <- sim_all(
+   nosim = nosim,
+   resps = resps,
+   designpath = designpath,
+   u = ul,
+   bcoeff = bcoeff,
+   decisiongroups = decisiongroups,
+   manipulations = manipulations,
+   utility_transform_type = "exact",
+   mode = "sequential",
+   estimate=FALSE
+ )
bcoeff_lookup already exists; skipping modification.

Utility function used in simulation (true utility):
$u1
$u1$v1
V.1 ~ bpreis * alt1.x1 + blade * alt1.x2 + bwarte * alt1.x3
<environment: 0x561a782ba6d8>

$u1$v2
V.2 ~ bpreis * alt2.x1 + blade * alt2.x2 + bwarte * alt2.x3
<environment: 0x561a79a92548>


$u2
$u2$v1
V.1 ~ bpreis * alt1.x1
<environment: 0x561a79ab54a8>

$u2$v2
V.2 ~ bpreis * alt2.x1
<environment: 0x561a79ad4fd8>


I guessed it is an ngene file
New names:
• `Choice situation` -> `Choice.situation`
• `` -> `...10`

 No preprocess function provided. Proceeding without additional preprocessing.



 dataset preprossed_data exists: FALSE


 decisiongroups exists: TRUE

Group counts:

   1    2 
1007  433 

Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `[.data.table`:
! attempt access index 10/10 in VECTOR_ELT
Backtrace:
     ▆
  1. ├─simulateDCE::sim_all(...)
  2. │ ├─... %>% stats::setNames(designname)
  3. │ └─purrr::map(...)
  4. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │     ├─purrr:::with_indexed_errors(...)
  6. │     │ └─base::withCallingHandlers(...)
  7. │     ├─purrr:::call_with_cleanup(...)
  8. │     └─simulateDCE (local) .f(.x[[i]], ...)
  9. │       └─1:no_sim %>% ...
 10. ├─stats::setNames(., designname)
 11. ├─simulateDCE (local) switchmap(...)
 12. │ └─purrr::map(.x, .f, ..., .progress = .progress)
 13. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 14. │     ├─purrr:::with_indexed_errors(...)
 15. │     │ └─base::withCallingHandlers(...)
 16. │     ├─purrr:::call_with_cleanup(...)
 17. │     └─simulateDCE (local) .f(.x[[i]], ...)
 18. │       └─simulateDCE::simulate_choices(...)
 19. │         ├─...[]
 20. │         └─data.table:::`[.data.table`(...)
 21. └─base::.handleSimpleError(...)
 22.   └─purrr (local) h(simpleError(msg, call))
 23.     └─cli::cli_abort(...)
 24.       └─rlang::abort(...)
Execution halted