R Under development (unstable) (2024-09-18 r87177 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library("testthat") > library("refund") Warning message: S3 method 'smooth.construct.peer.smooth.spec' was declared in NAMESPACE but not found > > Sys.setenv(NOT_CRAN = "true") > test_check("refund") 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 2 | WARN 0 | SKIP 0 | PASS 42 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-peer.R:8:3'): peer with D2 penalty ───────────────────────────── Error in `UseMethod("smooth.construct")`: no applicable method for 'smooth.construct' applied to an object of class "peer.smooth.spec" Backtrace: ▆ 1. └─refund::pfr(pasat ~ peer(cca, pentype = "D"), data = DTI) at test-peer.R:8:3 2. ├─base::eval(newcall) 3. │ └─base::eval(newcall) 4. └─mgcv::gam(...) 5. ├─base::do.call(...) 6. └─mgcv:::gam.setup(...) 7. └─mgcv::smoothCon(...) 8. └─mgcv:::smooth.construct3(object, data, knots) 9. └─mgcv::smooth.construct(object, dk$data, dk$knots) ── Error ('test-peer.R:18:3'): peer with structured penalty works ────────────── Error in `UseMethod("smooth.construct")`: no applicable method for 'smooth.construct' applied to an object of class "peer.smooth.spec" Backtrace: ▆ 1. └─refund::pfr(...) at test-peer.R:18:3 2. ├─base::eval(newcall) 3. │ └─base::eval(newcall) 4. └─mgcv::gam(...) 5. ├─base::do.call(...) 6. └─mgcv:::gam.setup(...) 7. └─mgcv::smoothCon(...) 8. └─mgcv:::smooth.construct3(object, data, knots) 9. └─mgcv::smooth.construct(object, dk$data, dk$knots) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 42 ] Error: Test failures Execution halted