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

> ### Name: plot.regvec3d
> ### Title: Plot method for regvec3d objects
> ### Aliases: plot.regvec3d print.regvec3d summary.regvec3d
> 
> ### ** Examples
> 
> if (require(car)) {
+    data("Duncan", package="car")
+    dunc.reg <- regvec3d(prestige ~ income + education, data=Duncan)
+    plot(dunc.reg)
+    plot(dunc.reg, dimension=2)
+    plot(dunc.reg, error.sphere="e")
+    summary(dunc.reg)
+ 
+    # Example showing Simpson's paradox
+    states.vec <- regvec3d(SATM ~ pay + percent, data=car::States, scale=TRUE)
+    plot(states.vec, show.marginal=TRUE)
+    plot(states.vec, show.marginal=TRUE, dimension=2)
+    summary(states.vec)
+ }
Loading required package: car
Loading required package: carData
Warning in data("Duncan", package = "car") :
  data set 'Duncan' not found
Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin((1 - t[i]) * phi)/sin(phi)) * (A - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (sin(t[i] * phi)/sin(phi)) * (B - O) :
  Recycling array of length 1 in array-vector arithmetic is deprecated.
  Use c() or as.vector() instead.

                       x         y         z    length
income         0.7754622 0.0000000 0.0000000 0.7754622
education      0.6842863 0.6509930 0.0000000 0.9444785
prestige       0.8378014 0.3553340 0.4145197 1.0000000
residuals      0.0000000 0.0000000 0.4145197 0.4145197
prestige hat   0.8378014 0.3553340 0.0000000 0.9100403
b1 income      0.4642947 0.0000000 0.0000000 0.4642947
b2 education   0.3735067 0.3553340 0.0000000 0.5155284
prestige hat 1 0.8378014 0.0000000 0.0000000 0.8378014
prestige hat 2 0.6172234 0.5871929 0.0000000 0.8519156

Call:
lm(formula = formula, data = Data)

Residuals:
    Min      1Q  Median      3Q     Max 
-29.538  -6.417   0.655   6.605  34.641 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept) -6.06466    4.27194  -1.420    0.163    
income.      0.59873    0.11967   5.003 1.05e-05 ***
education.   0.54583    0.09825   5.555 1.73e-06 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 13.37 on 42 degrees of freedom
Multiple R-squared:  0.8282,	Adjusted R-squared:   0.82 
F-statistic: 101.2 on 2 and 42 DF,  p-value: < 2.2e-16

Error: 'States' is not an exported object from 'namespace:car'
Execution halted