Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(gldrm)
  > if (require(testthat)) test_check("gldrm")
  Loading required package: testthat
  ── 1. Error: gldrm and gldrmFit match (@test-gldrm.R#17)  ──────────────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. gldrm::gldrm(dat$y ~ dat$x - 1, data = NULL, link = "log")
   3. stats::model.frame.default(formula, data)
  
  ── 2. Error: gldrm matches intercept-only (empirical distribution) model (@test-
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. gldrm::gldrm(dat$y ~ dat$x - 1, data = NULL, link = "identity")
   3. stats::model.frame.default(formula, data)
  
  ── 3. Error: gldrm matches logistic regression (@test-gldrm.R#44)  ─────────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. gldrm::gldrm(dat$y ~ dat$x - 1, data = NULL, link = "logit")
   3. stats::model.frame.default(formula, data)
  
  ── 4. Error: Can handle muHat on boundary of spt (@test-gldrm.R#56)  ───────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. gldrm::gldrm(y ~ x - 1, data = NULL, link = "identity")
   3. stats::model.frame.default(formula, data)
  
  ── 5. Error: Can handle singular covariate matrix (@test-gldrm.R#68)  ──────────
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. gldrm::gldrm(y ~ x - 1, data = NULL, link = "identity")
   3. stats::model.frame.default(formula, data)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: gldrm and gldrmFit match (@test-gldrm.R#17) 
  2. Error: gldrm matches intercept-only (empirical distribution) model (@test-gldrm.R#29) 
  3. Error: gldrm matches logistic regression (@test-gldrm.R#44) 
  4. Error: Can handle muHat on boundary of spt (@test-gldrm.R#56) 
  5. Error: Can handle singular covariate matrix (@test-gldrm.R#68) 
  
  Error: testthat unit tests failed
  Execution halted