* using log directory 'd:/RCompile/CRANincoming/R-devel/countrows.Rcheck' * using R version 4.5.0 beta (2025-04-01 r88091 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'countrows/DESCRIPTION' ... OK * this is package 'countrows' version '0.0.0.9000' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Aastik Narang ' New submission Version contains large components (0.0.0.9000) Package has a VignetteBuilder field but no prebuilt vignette index. The Title field should be in title case. Current version is: 'Count Rows Matching a Pattern Using grep' In title case that is: 'Count Rows Matching a Pattern Using Grep' * checking package namespace information ... OK * checking package dependencies ... INFO Vignette dependency required without any vignettes: 'knitr' * 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 serialization versions ... OK * checking whether package 'countrows' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE License components which are templates and need '+ file LICENSE': MIT * checking top-level files ... NOTE Non-standard file/directory found at top level: 'vignette' * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... NOTE Problems with news in 'NEWS.md': No news entries found. * 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 examples ... NONE * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(countrows) > library(data.table) > > test_that("count_rows_with_pattern handles valid input", { + df <- data.frame(text = c("apple", "banana", "apple pie", "orange")) + expect_equal(count_rows_with_pattern("apple", data = df), 2L) + expect_equal(count_rows_with_pattern("APPLE", data = df, ignore_case = TRUE), 2L) + expect_equal(count_rows_with_pattern("grape", data = df), 0L) + expect_equal(count_rows_with_pattern("^apple", data = df), 1L) + }) ── Failure: count_rows_with_pattern handles valid input ──────────────────────── count_rows_with_pattern("apple", data = df) not equal to 2L. 1/1 mismatches [1] 0 - 2 == -2 ── Failure: count_rows_with_pattern handles valid input ──────────────────────── count_rows_with_pattern("APPLE", data = df, ignore_case = TRUE) not equal to 2L. 1/1 mismatches [1] 0 - 2 == -2 ── Failure: count_rows_with_pattern handles valid input ──────────────────────── count_rows_with_pattern("^apple", data = df) not equal to 1L. 1/1 mismatches [1] 0 - 1 == -1 Error: ! Test failed Backtrace: ▆ 1. ├─testthat::test_that(...) 2. │ └─withr (local) ``() 3. └─reporter$stop_if_needed() 4. └─rlang::abort("Test failed", call = NULL) Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 4 NOTEs