* 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 ... 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 ... WARNING Found the following significant warnings: Warning: S3 method 'smooth.construct.peer.smooth.spec' was declared in NAMESPACE but not found See 'd:/RCompile/CRANincoming/R-devel/refund.Rcheck/00install.out' for details. * 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 ... NOTE Warning: S3 method 'smooth.construct.peer.smooth.spec' was declared in NAMESPACE but not found A namespace must be able to be loaded with just the base namespace loaded: otherwise if the namespace gets loaded by a saved object, the session will be unable to start. Probably some imports need to be declared in the NAMESPACE file. * 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 ... [39s] 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: af.Rd: bam, gamm, smooth.terms, s, t2, te, linear.functional.terms af_old.Rd: bam, gamm, s, t2, te, smooth.basisPar, fd, linear.functional.terms fgam.Rd: gam fosr.Rd: fd fosr.vs.Rd: grpreg fosr2s.Rd: fd fpc.Rd: bam, gamm lf.Rd: bam, gamm, smooth.terms, linear.functional.terms lf.vd.Rd: te, s, linear.functional.terms lf_old.Rd: bam, gamm, te, s, smooth.basisPar, fd, linear.functional.terms peer_old.Rd: lme pfr.Rd: gam, s, te, t2, bam, gamm, gamm4 predict.fgam.Rd: predict.gam predict.pfr.Rd: predict.gam smooth.construct.fpc.smooth.spec.Rd: smooth.construct smooth.construct.pco.smooth.spec.Rd: gam smooth.construct.peer.smooth.spec.Rd: smooth.construct vis.fgam.Rd: levelplot, vis.gam, plot.gam vis.pfr.Rd: levelplot, vis.gam, plot.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 ... [19s] 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") 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 * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [19s] OK * DONE Status: 1 ERROR, 1 WARNING, 2 NOTEs