* using log directory 'd:/Rcompile/CRANpkg/local/4.6/isoWater.Rcheck' * using R Under development (unstable) (2025-06-11 r88304 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 'isoWater/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'isoWater' version '1.2.0' * 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 'isoWater' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [4s] 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 ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [5s] ERROR Running examples in 'isoWater-Ex.R' failed The error most likely occurred in: > ### Name: wiDB_data > ### Title: Obtain data from wiDB using a query > ### Aliases: wiDB_data > > ### ** Examples > > #Download data for US precipitation in the 1990s > vals = wiDB_data(minDate = "1990-01-01", maxDate = "2000-01-01", + countries = "US", types = "Precipitation") Warning in unzip(paste0(tmpdir, "/", fn), exdir = paste0(tmpdir, "/downloads")) : skipped "../" path component(s) in '../downloads/1749728723-data.csv' Warning in unzip(paste0(tmpdir, "/", fn), exdir = paste0(tmpdir, "/downloads")) : skipped "../" path component(s) in '../downloads/1749728723-project.csv' Warning in unzip(paste0(tmpdir, "/", fn), exdir = paste0(tmpdir, "/downloads")) : skipped "../" path component(s) in '../downloads/HeaderDescriptions.xlsx' Error in if (file.size(df) == 0) { : missing value where TRUE/FALSE needed Calls: wiDB_data Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [6s] ERROR Running 'testthat.R' [6s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(curl) Using libcurl 8.14.1 with Schannel > library(isoWater) > > test_check("isoWater") Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 6 Total graph size: 72 Initializing model Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 6 Total graph size: 72 Initializing model Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 6 Total graph size: 72 Initializing model Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 4 Total graph size: 46 Initializing model Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 4 Total graph size: 46 Initializing model Compiling model graph Resolving undeclared variables Allocating nodes Graph information: Observed stochastic nodes: 1 Unobserved stochastic nodes: 4 Total graph size: 46 Initializing model [ FAIL 1 | WARN 3 | SKIP 0 | PASS 21 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-wiDB.R:20:3'): (code run outside of `test_that()`) ───────────── Error in `if (file.size(df) == 0) { file.remove(c(paste0(tmpdir, "/", fn), df, pf)) warning("No records returned") return(NULL) }`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─isoWater::wiDB_data(...) at test-wiDB.R:20:3 [ FAIL 1 | WARN 3 | SKIP 0 | PASS 21 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [4s] ERROR Error(s) in re-building vignettes: --- re-building 'isoWater.Rmd' using rmarkdown Quitting from isoWater.Rmd:52-55 [query2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `if (file.size(df) == 0) ...`: ! missing value where TRUE/FALSE needed --- Backtrace: ▆ 1. └─isoWater::wiDB_data(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'isoWater.Rmd' failed with diagnostics: missing value where TRUE/FALSE needed --- failed re-building 'isoWater.Rmd' SUMMARY: processing the following file failed: 'isoWater.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 3 ERRORs