Package suggested but not available for checking: 'xyz'
'LazyData' is specified without a 'data' directory
Running examples in 'GRPtests-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.001908748
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called 'xyz'
Execution halted
Package suggested but not available for checking: ‘xyz’
'LazyData' is specified without a 'data' directory
Running examples in ‘GRPtests-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.001908748
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called ‘xyz’
Execution halted
Package suggested but not available for checking: ‘xyz’
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Running examples in ‘GRPtests-Ex.R’ failed
The error most likely occurred in:

> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.0003799276
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called ‘xyz’
Execution halted
Package suggested but not available for checking: ‘xyz’
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Running examples in ‘GRPtests-Ex.R’ failed
The error most likely occurred in:

> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.001908748
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called ‘xyz’
Execution halted
'LazyData' is specified without a 'data' directory
Package suggested but not available for checking: ‘xyz’
'LazyData' is specified without a 'data' directory
Running examples in ‘GRPtests-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.001908748
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called ‘xyz’
Execution halted
Package suggested but not available for checking: ‘xyz’
'LazyData' is specified without a 'data' directory
Running examples in ‘GRPtests-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: GRPtest
> ### Title: Goodness-of-fit test for high-dimensional generalized linear
> ###   models
> ### Aliases: GRPtest
> 
> ### ** Examples
> 
> # Testing for nonlinearity: Logistic link function
> 
> set.seed(1)
> X <- matrix(rnorm(300*30), 300, 30)
> z <- X[, 1] + X[, 2]^4
> pr <- 1/(1 + exp(-z))
> y <- rbinom(nrow(X), 1, pr)
> (out <- GRPtest(X, y, fam = "binomial", nsplits = 5))
[1] 0.001908748
> 
> # Testing for nonlinearity: Define your own RP function
> # use package xyz
> 
> my_RP_function <- function(XA, resA, XB){
+   xyz_fit <- xyz_regression(XA, resA)
+   predict(xyz_fit, newdata = as.matrix(XB))[,5]
+ }
> 
> library(xyz)
Error in library(xyz) : there is no package called ‘xyz’
Execution halted
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘MASS’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory