Running examples in 'treatSens-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: treatSens.BART
> ### Title: Dual-Parameter Sensitivity Analysis Using BART
> ### Aliases: treatSens.BART
> 
> ### ** Examples
> 
> N <- 250                      # number of observations
> 
> zetay <- 0.5                  # coefficient on U in the outcome model
> zetaz <- 0.5                  # coefficient on U in the treatment model
> betaz <- c(0.75, -0.5,  0.25) # coefficients of X in the treatment model
> betay <- c(0.5,   1.0, -1.5)  # coefficients of X in the outcome model
> tau   <- 0.25                 # treatment effect
> 
> set.seed(725)
> X <- matrix(rnorm(3 * N), N)  # covariates
> 
> U  <- rbinom(N, 1, 0.5)                        # unmeasured confounder
> ps <- pnorm(X %*% betaz + zetaz * (U - 0.5)) # propensity score
> Z  <- rbinom(N, 1, ps)                         # treatment variable
> epsilon <- rnorm(N, 0.0, 2.0)                  # error term
> 
> Y0 <- X %*% betay + zetay * (U - 0.5) + epsilon       # potential outcome(Z=0)
> Y1 <- X %*% betay + zetay * (U - 0.5) + tau + epsilon # potential outcome(Z=1)
> Y  <- Y0 * (1 - Z) + Y1 * Z                             # realization of potential outcome
> 
> # sensitivity analysis
> out.bin <- treatSens.BART(Y ~ Z + X, nsim = 3, nthin = 2, nburn = 0,
+                           spy.range = c(0, 4), spz.range = c(-2 , 2), grid.dim = c(5, 3),
+                           standardize = FALSE, verbose = TRUE)
Warning in model.matrix.default(mt, mf, contrasts) :
  non-list contrasts argument ignored
Warning in model.matrix.default(mt, mf, contrasts) :
  non-list contrasts argument ignored
Binary U with binomial distribution is assumed.
"ATE" option is selected. Sensitivity analysis is performed with the default Weights for the average treatment effect.
Weight trimming is applied.  The maximum size of weights is set to 25 , which is 10 % of the size of the inferential group.
Computing final grid...

 *** caught segfault ***

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'

 *** caught segfault ***
address (nil), cause 'memory not mapped'
address (nil), cause 'memory not mapped'
address (nil), cause 'memory not mapped'
realloc(): invalid next size
Aborted