* using log directory 'd:/Rcompile/CRANpkg/local/3.6/IPDFileCheck.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'IPDFileCheck/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'IPDFileCheck' version '0.6.6' * 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 'IPDFileCheck' 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 ... [18s] OK * checking Rd files ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [15s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [341s] ERROR Running 'testthat.R' [341s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(IPDFileCheck) > > test_check("IPDFileCheck") trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/commonmark_1.7.zip' Content type 'application/zip' length 265799 bytes (259 KB) ================================================== downloaded 259 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/hunspell_3.0.1.zip' Content type 'application/zip' length 1914890 bytes (1.8 MB) ================================================== downloaded 1.8 MB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/spelling_2.2.zip' Content type 'application/zip' length 55134 bytes (53 KB) ================================================== downloaded 53 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/config_0.3.1.zip' Content type 'application/zip' length 81595 bytes (79 KB) ================================================== downloaded 79 KB package 'commonmark' successfully unpacked and MD5 sums checked package 'hunspell' successfully unpacked and MD5 sums checked package 'spelling' successfully unpacked and MD5 sums checked package 'config' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/valueEQ5D_0.7.1.zip' Content type 'application/zip' length 502708 bytes (490 KB) ================================================== downloaded 490 KB package 'valueEQ5D' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages Warning trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/bitops_1.0-7.zip' Content type 'application/zip' length 42346 bytes (41 KB) ================================================== downloaded 41 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/caTools_1.18.2.zip' Content type 'application/zip' length 329517 bytes (321 KB) ================================================== downloaded 321 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/gdata_2.18.0.zip' Content type 'application/zip' length 1264433 bytes (1.2 MB) ================================================== downloaded 1.2 MB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/gplots_3.1.1.zip' Content type 'application/zip' length 604080 bytes (589 KB) ================================================== downloaded 589 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/gtools_3.8.2.zip' Content type 'application/zip' length 336453 bytes (328 KB) ================================================== downloaded 328 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/gmodels_2.18.1.zip' Content type 'application/zip' length 114466 bytes (111 KB) ================================================== downloaded 111 KB package 'bitops' successfully unpacked and MD5 sums checked package 'caTools' successfully unpacked and MD5 sums checked package 'gdata' successfully unpacked and MD5 sums checked package 'gplots' successfully unpacked and MD5 sums checked package 'gtools' successfully unpacked and MD5 sums checked package 'gmodels' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/bookdown_0.22.zip' Content type 'application/zip' length 1094904 bytes (1.0 MB) ================================================== downloaded 1.0 MB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/eha_2.9.0.zip' Content type 'application/zip' length 2774720 bytes (2.6 MB) ================================================== downloaded 2.6 MB package 'bookdown' successfully unpacked and MD5 sums checked package 'eha' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/BRugs_0.9-0.zip' Content type 'application/zip' length 256011 bytes (250 KB) ================================================== downloaded 250 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/R2WinBUGS_2.1-21.zip' Content type 'application/zip' length 844434 bytes (824 KB) ================================================== downloaded 824 KB package 'BRugs' successfully unpacked and MD5 sums checked package 'R2WinBUGS' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/doParallel_1.0.16.zip' Content type 'application/zip' length 64213 bytes (62 KB) ================================================== downloaded 62 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/foreach_1.5.1.zip' Content type 'application/zip' length 145834 bytes (142 KB) ================================================== downloaded 142 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/iterators_1.0.13.zip' Content type 'application/zip' length 343252 bytes (335 KB) ================================================== downloaded 335 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/itertools_0.1-3.zip' Content type 'application/zip' length 114787 bytes (112 KB) ================================================== downloaded 112 KB trying URL 'http://cran.us.r-project.org/bin/windows/contrib/3.6/plyr_1.8.6.zip' Content type 'application/zip' length 1312806 bytes (1.3 MB) ================================================== downloaded 1.3 MB package 'doParallel' successfully unpacked and MD5 sums checked package 'foreach' successfully unpacked and MD5 sums checked package 'iterators' successfully unpacked and MD5 sums checked package 'itertools' successfully unpacked and MD5 sums checked package 'plyr' successfully unpacked and MD5 sums checked The downloaded binary packages are in D:\temp\RtmpAZfEuF\downloaded_packages == Failed tests ================================================================ -- Error (test-IPDFilecheck.R:66:3): testing age calculated from year of birth -- Error: Age can not be negative OR greater than 150 Backtrace: x 1. \-IPDFileCheck::calculate_age_from_year(...) test-IPDFilecheck.R:66:2 -- Failure (test-IPDFilecheck.R:898:3): testing presenting mean and ad after removing NA -- present_mean_sd_rmna_text(this_data, "age", NA) not equal to `this_res`. 1/1 mismatches x[1]: "1 (1)" y[1]: "18 (4.24)" [ FAIL 2 | WARN 0 | SKIP 0 | PASS 157 ] 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 ... [7s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR