* using log directory 'd:/Rcompile/CRANpkg/local/4.2/iperform.Rcheck' * using R version 4.2.3 (2023-03-15 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: UTF-8 * checking for file 'iperform/DESCRIPTION' ... OK * this is package 'iperform' version '0.0.2' * package encoding: UTF-8 * 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 'iperform' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... 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 R 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 ... [5s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(iperform) > > test_check("iperform") [ FAIL 5 | WARN 0 | SKIP 0 | PASS 45 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-dday.R:7:3'): dday works ───────────────────────────────────── dday(df, "2023-08-03", x = "x") (`actual`) not identical to 8 (`expected`). `actual`: 0 `expected`: 8 ── Failure ('test-dday.R:8:3'): dday works ───────────────────────────────────── dday(df, "2023-08-05", d = -1, x = "x") (`actual`) not identical to 12 (`expected`). `actual`: 0 `expected`: 12 ── Failure ('test-dday.R:9:3'): dday works ───────────────────────────────────── dday(df, "2023-08-05", d = 0, x = "x") (`actual`) not identical to 6 (`expected`). `actual`: 0 `expected`: 6 ── Failure ('test-dday.R:10:3'): dday works ──────────────────────────────────── dday(df, "2023-08-01", d = 1, x = "x") (`actual`) not identical to 13 (`expected`). `actual`: 0 `expected`: 13 ── Failure ('test-ytd.R:12:3'): ytd works ────────────────────────────────────── ytd(df, "2023-08-01", x = "x") (`actual`) not equal to dday(df, "2023-08-01", x = "x") (`expected`). `actual`: 10 `expected`: 0 [ FAIL 5 | WARN 0 | SKIP 0 | PASS 45 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [6s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR