Running 'test-interval-timeSplitter.R' [6s/7s]
  Running 'test-nonlin_4_coxph.R' [6s/8s]
  Running 'testthat.R' [21s/24s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(Greg)
  Loading required package: forestplot
  Loading required package: grid
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required package: checkmate
  Loading required package: Gmisc
  Loading required package: Rcpp
  Loading required package: htmlTable
  > 
  > test_check("Greg")
  -- 1. Error: Check model.matrix for ols (@test-confint_robust.R#72)  -----------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. testthat::expect_warning(model.matrix(fit))
   7. Greg:::model.matrix.ols(fit)
   8. Greg:::prGetModelData(object)
   9. stats::get_all_vars(as.formula(x), data = data)
  
  -- 2. Error: Check subsetting (@test-getCrudeAndAdjustedModelData.R#81)  -------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. Greg::getCrudeAndAdjustedModelData(fit1)
   2. Greg:::getCrudeAndAdjustedModelData.default(fit1)
   5. Greg:::prGetModelData(model)
   6. stats::get_all_vars(as.formula(x), data = data)
  
  -- 3. Error: Check the prPhEstimate function (@test-plotHR.R#155)  -------------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. Greg:::prPhEstimate(...)
   2. Greg:::prPhNewData(model = model, term.label = term.label, xlim = xlim)
   3. Greg:::prGetModelData(model, terms_only = TRUE, term.label = term.label)
   4. stats::get_all_vars(as.formula(x), data = data)
  
  -- 4. Error: Subsetting (@test-private_functions.R#557)  -----------------------
  'data' must be a data.frame, environment, or list
  Backtrace:
   1. testthat::expect_equivalent(...)
   4. Greg:::prGetModelData(fit)
   5. stats::get_all_vars(as.formula(x), data = data)
  
  == testthat results  ===========================================================
  [ OK: 260 | SKIPPED: 2 | WARNINGS: 7 | FAILED: 4 ]
  1. Error: Check model.matrix for ols (@test-confint_robust.R#72) 
  2. Error: Check subsetting (@test-getCrudeAndAdjustedModelData.R#81) 
  3. Error: Check the prPhEstimate function (@test-plotHR.R#155) 
  4. Error: Subsetting (@test-private_functions.R#557) 
  
  Error: testthat unit tests failed
  Execution halted