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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bayesTest
> ### Title: Fit a Bayesian model to A/B test data.
> ### Aliases: bayesTest
> 
> ### ** Examples
> 
> A_binom <- rbinom(100, 1, .5)
> B_binom <- rbinom(100, 1, .6)
> 
> A_norm <- rnorm(100, 6, 1.5)
> B_norm <- rnorm(100, 5, 2.5)
> 
> AB1 <- bayesTest(A_binom, B_binom, 
+                  priors = c('alpha' = 1, 'beta' = 1), 
+                  distribution = 'bernoulli')
> AB2 <- bayesTest(A_norm, B_norm,
+                  priors = c('mu' = 5, 'lambda' = 1, 'alpha' = 3, 'beta' = 1), 
+                  distribution = 'normal')
> 
> print(AB1)
--------------------------------------------
Distribution used: bernoulli 
--------------------------------------------
Using data with the following properties: 
           A   B
Min.    0.00 0.0
1st Qu. 0.00 0.0
Median  0.00 1.0
Mean    0.48 0.6
3rd Qu. 1.00 1.0
Max.    1.00 1.0
--------------------------------------------
Conjugate Prior Distribution: Beta 
Conjugate Prior Parameters: 
$alpha
[1] 1

$beta
[1] 1

--------------------------------------------
Calculated posteriors for the following parameters: 
Probability 
--------------------------------------------
Monte Carlo samples generated per posterior: 
[1] 1e+05
> summary(AB1)
Quantiles of posteriors for A and B:

$Probability
$Probability$A
       0%       25%       50%       75%      100% 
0.2632945 0.4470154 0.4805094 0.5137705 0.6823999 

$Probability$B
       0%       25%       50%       75%      100% 
0.3682829 0.5656305 0.5985552 0.6312584 0.7900493 


--------------------------------------------

P(A > B) by (0)%: 

$Probability
[1] 0.04541

--------------------------------------------

Credible Interval on (A - B) / B for interval length(s) (0.9) : 

$Probability
          5%          95% 
-0.355943366 -0.006198834 

--------------------------------------------

Posterior Expected Loss for choosing B over A:

$Probability
[1] 0.2601664

> plot(AB1)
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: <Anonymous> ... lapply -> FUN -> push.vp.viewport -> grid.Call.graphics
Execution halted