Running 'testthat.R' [138s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("refund")
  > 
  > Sys.setenv(NOT_CRAN = "true")
  > test_check("refund")
  
  ***** Fitting full model... *****
  Finding optimal lambda by optimize()...
  
  ***** Preliminary permutations... *****
  Finding optimal lambda by optimize()...
  Finding optimal lambda by optimize()...
  Finding optimal lambda by optimize()...
  ***** Computing time for preliminary permutations: 2.72 seconds *****
  
  ***** Main permutations... *****
  ***** Computing time for permuted-data models: 2.63 seconds *****
  
  nbasis: 40 
  nbasis: 40 
  nbasis: 20 
  nbasis: 25 
  nbasis: 30 
  nbasis: 35 
  nbasis: 40 
  nbasis: 35 
  using seWithMean for  s(argvals.vec) .
  using seWithMean for  te(xte1,xte2) .
  using seWithMean for  s(argvals.vec) .
  using seWithMean for  te(xte1,xte2) .
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 48 ]
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning ('test-fosr.R:18'): fosr Penalized GLS works ────────────────────────
   'X'X + penalty' is numerically rank-deficient.
  Backtrace:
   1. refund::fosr(...)
        at test-fosr.R:18:2
   2. refund:::amc(...)
  ── Warning ('test-pffr.R:88'): another ff term example ─────────────────────────
  Creating reference value
  Backtrace:
   1. testthat::expect_equal_to_reference(m.ff$coefficients, "pffr.ff.coef.rds")
        at test-pffr.R:88:2
   2. testthat::expect_known_value(..., update = update)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-fosr.R:18'): fosr Penalized GLS works ──────────────────────────
  Error in `svd(X)`: infinite or missing values in 'x'
  Backtrace:
      ▆
   1. └─refund::fosr(...) at test-fosr.R:18:2
   2.   └─refund:::amc(...)
   3.     └─MASS::ginv(crossprod(Xmat.) + fullpen, t(Xmat.))
   4.       └─base::svd(X)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 48 ]
  Error: Test failures
  Execution halted