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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.IDEMSINGLE
> ### Title: Plot MCMC mixing results
> ### Aliases: plot.IDEMSINGLE
> 
> ### ** Examples
> 
> im.abc <- imData(abc, trt="TRT", surv="SURV", outcome=c("Y1","Y2"),
+                  y0=NULL, endfml="Y2",
+                  trt.label = c("UC+SBT", "SAT+SBT"),
+                  cov=c("AGE"), duration=365, bounds=c(0,100));
> im.fit <- imFitModel(im.abc);
> im.imp.single <- imImpSingle(abc[1,], im.fit,
+                              chains = 4, iter = 200, warmup = 100);

SAMPLING FOR MODEL 'idem' NOW (CHAIN 1).
Chain 1: 
Chain 1: Gradient evaluation took 6e-06 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.06 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1: 
Chain 1: 
Chain 1: WARNING: There aren't enough warmup iterations to fit the
Chain 1:          three stages of adaptation as currently configured.
Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
Chain 1:          the given number of warmup iterations:
Chain 1:            init_buffer = 15
Chain 1:            adapt_window = 75
Chain 1:            term_buffer = 10
Chain 1: 
Chain 1: Iteration:   1 / 200 [  0%]  (Warmup)
Chain 1: Iteration:  20 / 200 [ 10%]  (Warmup)
Chain 1: Iteration:  40 / 200 [ 20%]  (Warmup)
Chain 1: Iteration:  60 / 200 [ 30%]  (Warmup)
Chain 1: Iteration:  80 / 200 [ 40%]  (Warmup)
Chain 1: Iteration: 100 / 200 [ 50%]  (Warmup)
Chain 1: Iteration: 101 / 200 [ 50%]  (Sampling)
Chain 1: Iteration: 120 / 200 [ 60%]  (Sampling)
Chain 1: Iteration: 140 / 200 [ 70%]  (Sampling)
Chain 1: Iteration: 160 / 200 [ 80%]  (Sampling)
Chain 1: Iteration: 180 / 200 [ 90%]  (Sampling)
Chain 1: Iteration: 200 / 200 [100%]  (Sampling)
Chain 1: 
Chain 1:  Elapsed Time: 0.002806 seconds (Warm-up)
Chain 1:                0.002807 seconds (Sampling)
Chain 1:                0.005613 seconds (Total)
Chain 1: 

SAMPLING FOR MODEL 'idem' NOW (CHAIN 2).
Chain 2: 
Chain 2: Gradient evaluation took 4e-06 seconds
Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.04 seconds.
Chain 2: Adjust your expectations accordingly!
Chain 2: 
Chain 2: 
Chain 2: WARNING: There aren't enough warmup iterations to fit the
Chain 2:          three stages of adaptation as currently configured.
Chain 2:          Reducing each adaptation stage to 15%/75%/10% of
Chain 2:          the given number of warmup iterations:
Chain 2:            init_buffer = 15
Chain 2:            adapt_window = 75
Chain 2:            term_buffer = 10
Chain 2: 
Chain 2: Iteration:   1 / 200 [  0%]  (Warmup)
Chain 2: Iteration:  20 / 200 [ 10%]  (Warmup)
Chain 2: Iteration:  40 / 200 [ 20%]  (Warmup)
Chain 2: Iteration:  60 / 200 [ 30%]  (Warmup)
Chain 2: Iteration:  80 / 200 [ 40%]  (Warmup)
Chain 2: Iteration: 100 / 200 [ 50%]  (Warmup)
Chain 2: Iteration: 101 / 200 [ 50%]  (Sampling)
Chain 2: Iteration: 120 / 200 [ 60%]  (Sampling)
Chain 2: Iteration: 140 / 200 [ 70%]  (Sampling)
Chain 2: Iteration: 160 / 200 [ 80%]  (Sampling)
Chain 2: Iteration: 180 / 200 [ 90%]  (Sampling)
Chain 2: Iteration: 200 / 200 [100%]  (Sampling)
Chain 2: 
Chain 2:  Elapsed Time: 0.003687 seconds (Warm-up)
Chain 2:                0.003383 seconds (Sampling)
Chain 2:                0.00707 seconds (Total)
Chain 2: 

SAMPLING FOR MODEL 'idem' NOW (CHAIN 3).
Chain 3: 
Chain 3: Gradient evaluation took 4e-06 seconds
Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.04 seconds.
Chain 3: Adjust your expectations accordingly!
Chain 3: 
Chain 3: 
Chain 3: WARNING: There aren't enough warmup iterations to fit the
Chain 3:          three stages of adaptation as currently configured.
Chain 3:          Reducing each adaptation stage to 15%/75%/10% of
Chain 3:          the given number of warmup iterations:
Chain 3:            init_buffer = 15
Chain 3:            adapt_window = 75
Chain 3:            term_buffer = 10
Chain 3: 
Chain 3: Iteration:   1 / 200 [  0%]  (Warmup)
Chain 3: Iteration:  20 / 200 [ 10%]  (Warmup)
Chain 3: Iteration:  40 / 200 [ 20%]  (Warmup)
Chain 3: Iteration:  60 / 200 [ 30%]  (Warmup)
Chain 3: Iteration:  80 / 200 [ 40%]  (Warmup)
Chain 3: Iteration: 100 / 200 [ 50%]  (Warmup)
Chain 3: Iteration: 101 / 200 [ 50%]  (Sampling)
Chain 3: Iteration: 120 / 200 [ 60%]  (Sampling)
Chain 3: Iteration: 140 / 200 [ 70%]  (Sampling)
Chain 3: Iteration: 160 / 200 [ 80%]  (Sampling)
Chain 3: Iteration: 180 / 200 [ 90%]  (Sampling)
Chain 3: Iteration: 200 / 200 [100%]  (Sampling)
Chain 3: 
Chain 3:  Elapsed Time: 0.002787 seconds (Warm-up)
Chain 3:                0.002956 seconds (Sampling)
Chain 3:                0.005743 seconds (Total)
Chain 3: 

SAMPLING FOR MODEL 'idem' NOW (CHAIN 4).
Chain 4: 
Chain 4: Gradient evaluation took 5e-06 seconds
Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 0.05 seconds.
Chain 4: Adjust your expectations accordingly!
Chain 4: 
Chain 4: 
Chain 4: WARNING: There aren't enough warmup iterations to fit the
Chain 4:          three stages of adaptation as currently configured.
Chain 4:          Reducing each adaptation stage to 15%/75%/10% of
Chain 4:          the given number of warmup iterations:
Chain 4:            init_buffer = 15
Chain 4:            adapt_window = 75
Chain 4:            term_buffer = 10
Chain 4: 
Chain 4: Iteration:   1 / 200 [  0%]  (Warmup)
Chain 4: Iteration:  20 / 200 [ 10%]  (Warmup)
Chain 4: Iteration:  40 / 200 [ 20%]  (Warmup)
Chain 4: Iteration:  60 / 200 [ 30%]  (Warmup)
Chain 4: Iteration:  80 / 200 [ 40%]  (Warmup)
Chain 4: Iteration: 100 / 200 [ 50%]  (Warmup)
Chain 4: Iteration: 101 / 200 [ 50%]  (Sampling)
Chain 4: Iteration: 120 / 200 [ 60%]  (Sampling)
Chain 4: Iteration: 140 / 200 [ 70%]  (Sampling)
Chain 4: Iteration: 160 / 200 [ 80%]  (Sampling)
Chain 4: Iteration: 180 / 200 [ 90%]  (Sampling)
Chain 4: Iteration: 200 / 200 [100%]  (Sampling)
Chain 4: 
Chain 4:  Elapsed Time: 0.003372 seconds (Warm-up)
Chain 4:                0.003156 seconds (Sampling)
Chain 4:                0.006528 seconds (Total)
Chain 4: 
> plot(im.imp.single);
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