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

> ### Name: createNIGrid
> ### Title: creates a grid for numerical integration.
> ### Aliases: createNIGrid
> 
> ### ** Examples
> 
> ## 1D-Grid --> closed Newton-Cotes Formula of degree 1 (trapeziodal-rule)
> myGrid <- createNIGrid(dim=1, type="cNC1", level=10)
Warning in weights * interv_length :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in (0L:n) * by :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

> print(myGrid)
Grid for Numerical Integration  
 # dimensions: 1	 # gridpoints: 11	 used memory:688 bytes

 same quadrature rule for each dimension 
 	 type:  cNC1 
 	 level:  10 
 	 initial domain:  0 1
> ## 2D-Grid --> nested Gauss-Legendre rule
> myGrid <- createNIGrid(dim=2, type=c("GLe","nLe"), level=c(4, 7))
> rescale(myGrid, domain = rbind(c(-1,1),c(-1,1)))
> plot(myGrid)
> print(myGrid)
Grid for Numerical Integration  
 # dimensions: 2	 # gridpoints: 60	 used memory:1.8 Kb

nD-Construction principle:  'product'
 individual quadrature rule for each dimension 
 dim = 1 --> 	 type: GLe 	 level:  4 	 initial domain: 0 1 
 dim = 2 --> 	 type: nLe 	 level:  7 	 initial domain: 0 1 

 Grid rescaled. New Domain: 
         a b
dim 1:  -1 1
dim 2:  -1 1

> myFun <- function(x){
+    1-x[,1]^2*x[,2]^2
+ }
> quadrature(f = myFun, grid = myGrid)
[1] 3.555556
> ## level transformation
> levelTrans <- function(x){
+   tmp <- as.matrix(x)
+   tmp[, 2] <- 2*tmp[ ,2]
+   return(tmp)
+ }
> nw <- createNIGrid(dim=2, type="cNC1", level = 3,
+    level.trans = levelTrans, ndConstruction = "sparse")
OMP: Warning #96: Cannot form a team with 3 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
Error in `[.data.table`(nw.table, , `:=`(w, sum(w.c)), by = eval(nw.names[-(dim +  : 
  SETLENGTH() cannot be applied to an ALTVEC object.
Calls: createNIGrid -> .sgridnD -> [ -> [.data.table
Execution halted