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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: lm and aov method for class design objects
> ### Title: lm and aov methods for class design objects
> ### Aliases: lm lm.default lm.design coef.lm.design aov aov.default
> ###   aov.design print.summary.lm.design print.lm.design summary.lm.design
> ###   print.summary.aov.design print.aov.design summary.aov.design
> ### Keywords: array design
> 
> ### ** Examples
> 
>   oa12 <- oa.design(nlevels=c(2,2,6))
>   ## add a few variables to oa12
>   responses <- cbind(y=rexp(12),z=runif(12))
>   oa12 <- add.response(oa12, responses)
>   ## want treatment contrasts rather than the default
>   ## polynomial contrasts for the factors 
>   oa12 <- change.contr(oa12, "contr.treatment")
>   linmod.y <- lm(oa12)
>   linmod.z <- lm(oa12, response="z")
>   linmod.y
Number of observations used: 12 
Formula:
y ~ A + B + C

Call:
lm.default(formula = fo, data = model.frame(fo, data = formula))

Coefficients:
(Intercept)           A2           B2           C2           C3           C4  
    1.48200     -0.86619     -0.37014     -0.31203      0.45520      0.28224  
         C5           C6  
    1.67551     -0.07637  

>   linmod.z
Number of observations used: 12 
Formula:
z ~ A + B + C

Call:
lm.default(formula = fo, data = model.frame(fo, data = formula))

Coefficients:
(Intercept)           A2           B2           C2           C3           C4  
    0.56512      0.01017     -0.25192     -0.02842      0.36090      0.15580  
         C5           C6  
   -0.04112      0.21773  

>   summary(linmod.y)
Number of observations used: 12 
Formula:
y ~ A + B + C

Call:
lm.default(formula = fo, data = model.frame(fo, data = formula))

Residuals:
         1          2          3          4          5          6          7 
 0.0002433  0.1567369 -0.1567369 -0.0912632 -1.1751666 -0.1564936  1.2664298 
         8          9         10         11         12 
 0.1564936 -0.0002433  1.1751666 -1.2664298  0.0912632 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)
(Intercept)  1.48200    1.00702   1.472    0.215
A2          -0.86619    0.71207  -1.216    0.291
B2          -0.37014    0.71207  -0.520    0.631
C2          -0.31203    1.23334  -0.253    0.813
C3           0.45520    1.23334   0.369    0.731
C4           0.28224    1.23334   0.229    0.830
C5           1.67551    1.23334   1.359    0.246
C6          -0.07637    1.23334  -0.062    0.954

Residual standard error: 1.233 on 4 degrees of freedom
Multiple R-squared:  0.5583,	Adjusted R-squared:  -0.2147 
F-statistic: 0.7222 on 7 and 4 DF,  p-value: 0.669

>   summary(linmod.z)
Number of observations used: 12 
Formula:
z ~ A + B + C

Call:
lm.default(formula = fo, data = model.frame(fo, data = formula))

Residuals:
        1         2         3         4         5         6         7         8 
 0.001216 -0.176840  0.176840 -0.153850 -0.105078  0.178056  0.258928 -0.178056 
        9        10        11        12 
-0.001216  0.105078 -0.258928  0.153850 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)  
(Intercept)  0.56512    0.23433   2.412   0.0734 .
A2           0.01017    0.16570   0.061   0.9540  
B2          -0.25192    0.16570  -1.520   0.2031  
C2          -0.02842    0.28700  -0.099   0.9259  
C3           0.36090    0.28700   1.258   0.2770  
C4           0.15580    0.28700   0.543   0.6161  
C5          -0.04112    0.28700  -0.143   0.8930  
C6           0.21773    0.28700   0.759   0.4903  
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.287 on 4 degrees of freedom
Multiple R-squared:  0.5785,	Adjusted R-squared:  -0.1591 
F-statistic: 0.7843 on 7 and 4 DF,  p-value: 0.6355

>   
> ## examples with aggregation
>   plan <- oa.design(nlevels=c(2,6,2), replications=2, repeat.only=TRUE)
>   y <- rnorm(24)
>   z <- rexp(24)
>   plan <- add.response(plan, cbind(y=y,z=z))
>   lm(plan)
analysing repeated measurement mean
Error in model.frame.default(fo, data = NULL) : 
  'data' must be a data.frame, environment, or list
Calls: lm ... is.data.frame -> model.frame -> model.frame.default
Execution halted