* using log directory 'd:/RCompile/CRANincoming/R-devel/refund.Rcheck' * using R Under development (unstable) (2024-09-18 r87177 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'refund/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'refund' version '0.1-37' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [10s] INFO Maintainer: 'Julia Wrobel ' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'refund' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [35s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... NOTE Found the following Rd file(s) with Rd \link{} targets missing package anchors: lf_old.Rd: bam, gamm, te, s, smooth.basisPar, fd, linear.functional.terms smooth.construct.pco.smooth.spec.Rd: gam Please provide package anchors for all Rd \link{} targets not in the package itself and the base packages. * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [15s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [64s] ERROR Running 'testthat.R' [64s] Running the tests in 'tests/testthat.R' failed. Complete output: > library("testthat") > library("refund") > > 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 * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [19s] OK * DONE Status: 1 ERROR, 1 NOTE