Running 'test_asis.R' [5s/6s]
  Running 'test_bayesqgcomp.R' [4s/5s]
  Running 'test_boot_ints.R' [5s/5s]
  Running 'test_boot_vs_noboot.R' [5s/6s]
  Running 'test_bootchooser.R' [52s/55s]
  Running 'test_cox_msmtest.R' [6s/7s]
  Running 'test_zi.R' [10s/11s]
Running the tests in 'tests/test_zi.R' failed.
Complete output:
  > cat("# zi test\n")
  # zi test
  > library(qgcomp)
  > n=100
  > dat <- data.frame(y=rbinom(n, 1, 0.5)*rpois(n, 1.2), x1=runif(n), x2=runif(n), z=runif(n))
  > 
  > # should not cause error
  > ee = qgcomp.zi.noboot(f=y ~ z + x1 + x2 | z, expnms = c('x1', 'x2'), data=dat, q=2, dist="negbin")
  > qgcomp.zi.noboot(f=y ~ z + x1 + x2 | x1 + x2 + z, expnms = c('x1', 'x2'), data=dat, q=2, dist="negbin")
  Prob(Y ~ count):
  Scaled effect size (positive direction, sum of positive coefficients = 0)
  None
  
  Scaled effect size (negative direction, sum of negative coefficients = -0.842)
     x1    x2 
  0.563 0.437 
  
  Prob(Y ~ zero/count):
  Scaled effect size (positive direction, sum of positive coefficients = 29.3)
     x2    x1 
  0.746 0.254 
  
  Scaled effect size (negative direction, sum of negative coefficients = 0)
  None
  
  Mixture log(OR/RR) (Delta method CI):
  
  Prob(Y ~ count):
              Estimate Std. Error Lower CI  Upper CI Z value Pr(>|z|)
  (Intercept) -0.85698    0.41180  -1.6641 -0.049865 -2.0811  0.03743
  psi1        -0.84186    0.49688  -1.8157  0.132005 -1.6943  0.09021
  Prob(Y ~ zero):
              Estimate Std. Error Lower CI Upper CI Z value Pr(>|z|)
  (Intercept) -313.709    326.569 -953.773  326.355 -0.9606   0.3367
  psi1          29.257     34.321  -38.011   96.525  0.8525   0.3940
  > 
  > qgcomp.zi.boot(f=y ~ z + x1 + x2 | z, expnms = c('x1', 'x2'), data=dat, q=4, B = 10, MCsize = 100, 
  +                dist="negbin")
  qgcomp.zi.boot function is still experimental. Please use with caution and be sure results are reasonable.
  
  Error in solve.default(as.matrix(fit$hessian)) : 
    system is computationally singular: reciprocal condition number = 1.70426e-30
  Calls: qgcomp.zi.boot ... FUN -> zimsm.fit -> zeroinfl -> solve -> solve.default
  Execution halted