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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.qgcompemmfit
> ### Title: Default plotting method for a qgcompfit object
> ### Aliases: plot.qgcompemmfit
> 
> ### ** Examples
> 
> set.seed(50)
> # linear model, binary modifier
> dat <- data.frame(y=runif(50), x1=runif(50), x2=runif(50),
+ z=rbinom(50,1,0.5), r=rbinom(50,1,0.5))
> (qfit <- qgcomp.emm.noboot(f=y ~ z + x1 + x2, emmvar="z",
+ expnms = c('x1', 'x2'), data=dat, q=2, family=gaussian()))
## Qgcomp weights/partial effects at z = 0
Scaled effect size (positive direction, sum of positive effects = 0.0428)
   x2    x1 
0.791 0.209 
Scaled effect size (negative direction, sum of negative effects = 0)
None


## Qgcomp weights/partial effects at z = 1
Scaled effect size (positive direction, sum of positive effects = 0)
None
Scaled effect size (negative direction, sum of negative effects = -0.209)
   x1    x2 
0.894 0.106 


## Mixture slope parameters (Delta method CI):

             Estimate Std. Error Lower CI Upper CI t value  Pr(>|t|)
(Intercept)  0.485577   0.105491  0.27882  0.69234  4.6030 3.534e-05
psi1         0.042775   0.153423 -0.25793  0.34348  0.2788    0.7817
z           -0.039288   0.133877 -0.30168  0.22311 -0.2935    0.7705
z:mixture   -0.251392   0.230900 -0.70395  0.20116 -1.0887    0.2822

Estimate (CI), z=1: 
-0.20862 (-0.54683, 0.12959)
> plot(qfit, emmval = 1)
> #
> library(ggplot2)
> 
> # example with bootstrapping
> dat2 <- data.frame(y=runif(50), x1=runif(50), x2=runif(50),
+ z=sample(0:2, 50,replace=TRUE), r=rbinom(50,1,0.5))
> dat2$z = as.factor(dat2$z)
> (qfit4 <- qgcomp.emm.boot(f=y ~ z + x1 + x2, emmvar="z",
+                           degree = 1, B = 20,
+                          expnms = c('x1', 'x2'), data=dat2, q=4, family=gaussian()))
Error in data.frame(yhat = predict(ft$msmfit), psi = ft$msmfit$data[,  : 
  arguments imply differing number of rows: 72, 200
Calls: qgcomp.emm.boot -> lapply -> FUN -> data.frame
Execution halted