tests/testthat/test-fowlkes.R

test_that("glm on a small sample of fowlkes runs", {
  skip_on_cran()
  data(fowlkes, package = "plsRglm")
  df <- fowlkes[sample(1:nrow(fowlkes),500,replace=FALSE), ]
  Xfowlkes <- df[,2:13]
  yfowlkes <- df[,1]
  set.seed(7)
  fit <- plsRglm(yfowlkes, Xfowlkes, nt = 2, modele = "pls-glm-logistic", 
                 verbose = FALSE)
  expect_s3_class(fit, "plsRglmmodel")
})

Try the plsRglm package in your browser

Any scripts or data that you put into this service are public.

plsRglm documentation built on June 17, 2026, 5:06 p.m.