* using log directory 'd:/RCompile/CRANincoming/R-devel/epiCleanr.Rcheck' * using R Under development (unstable) (2023-08-28 r85029 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 12.2.0 GNU Fortran (GCC) 12.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'epiCleanr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'epiCleanr' version '0.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Mohamed A. Yusuf ' New submission The Description field should not start with the package name, 'This package' or similar. * 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 'epiCleanr' 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 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 ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [48s] ERROR Running 'testthat.R' [48s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(epiCleanr) > > test_check("epiCleanr") # A tibble: 4 × 5 names_to_clean final_names source_of_cleaned_name prop_matched 1 Lyon Lyon User base admin names 100 2 Marseille Marseille User base admin names 100 3 Nice Nice User base admin names 100 4 Paris Paris Main admin name from geonames 100 # ℹ 1 more variable: matching_algorithm There are 4 out of 4 (100%) admins that have been perfectly matched! Consistency test passed for malaria_rdt_test vs malaria_rdt_cases: There are more tests than there are cases! Consistency test passed for malaria_rdt_test vs malaria_rdt_cases: There are more tests than there are cases! Consistency test passed for malaria_rdt_test vs malaria_rdt_cases: There are more tests than there are cases! Consistency test failed for malaria_micro_test vs malaria_micro_cases: There are 513 (51.3%) rows where tests are less than cases. Warning! Test failed. Expected 100,001 rows and 2 columns, but got 10,000 rows and 2 columns. Warning! Test failed. Expected 100,001 rows and 2 columns, but got 10,000 rows and 2 columns. Warning! Test failed. Duplicate rows found. See output$duplicate_rows. Warning! Test failed. Duplicate rows found. See output$duplicate_rows. Test passed! No repeated columns found! Test passed! No repeated columns found! Warning! Test failed. Expected 300 combinations but found 48 combinations for month, year. Warning! Test failed. Expected 300 combinations but found 12 for month, year. Test passed! No duplicate rows found! Test passed! No duplicate rows found! Test passed! No repeated columns found! Test passed! No duplicate columns found! Test passed! You have the correct number of combinations for column1, column2! Test passed! You have the correct number of combinations for column1, column2! Warning! Test failed. Repeated columns found. See output$duplicate_columns. Warning! Test failed. Repeated columns found. See output$duplicate_columns. Warning! Test failed. Values in column a are above the threshold. See output$max_thresh_a. Warning! Test failed. Values in column a are above the threshold. See output$max_thresh_a. [ FAIL 1 | WARN 0 | SKIP 0 | PASS 195 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-export.R:22:5'): export function works correctly ───────────── `dummy_df` not equal to `imported_df`. Component "a": Attributes: < target is NULL, current is list > Component "b": Attributes: < target is NULL, current is list > [ FAIL 1 | WARN 0 | SKIP 0 | PASS 195 ] Error: Test failures Execution halted * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE