Running ‘testthat.R’ [14s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(ordinalNet)
  > testthatInst <- require(testthat)
  Loading required package: testthat
  > 
  > if (testthatInst) test_check("ordinalNet")
  Loading required package: MASS
  Loading required package: glmnet
  Loading required package: Matrix
  Loading required package: foreach
  Loaded glmnet 2.0-10
  
  Loading required package: penalized
  Loading required package: survival
  Welcome to penalized. For extended examples, see vignette("penalized").
  Loading required package: glmnetcr
  Loading required package: VGAM
  Loading required package: stats4
  Loading required package: splines
  Loading required package: rms
  Loading required package: Hmisc
  Loading required package: lattice
  Loading required package: Formula
  Loading required package: ggplot2
  
  Attaching package: 'Hmisc'
  
  The following object is masked from 'package:testthat':
  
      describe
  
  The following objects are masked from 'package:base':
  
      format.pval, round.POSIXt, trunc.POSIXt, units
  
  Loading required package: SparseM
  
  Attaching package: 'SparseM'
  
  The following object is masked from 'package:base':
  
      backsolve
  
  
  Attaching package: 'rms'
  
  The following objects are masked from 'package:VGAM':
  
      calibrate, lrtest
  
  1. Error: Elastic net sratio matches glmnetcr::glmnet.cr (@test-ordinalNet.R#187) 
  could not find function "glmnet.cr"
  1: .handleSimpleError(function (e) 
     {
         e$call <- sys.calls()[(frame + 11):(sys.nframe() - 2)]
         register_expectation(e, frame + 11, sys.nframe() - 2)
         signalCondition(e)
     }, "could not find function \"glmnet.cr\"", quote(glmnet.cr(x, y, lambda = 0, method = "forward"))) at testthat/test-ordinalNet.R:187
  2: eval(code, test_env)
  
  testthat results ================================================================
  OK: 44 SKIPPED: 0 FAILED: 1
  1. Error: Elastic net sratio matches glmnetcr::glmnet.cr (@test-ordinalNet.R#187) 
  
  Error: testthat unit tests failed
  Execution halted