Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(curl)
  Using libcurl 8.11.1 with OpenSSL/3.2.4
  > 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: 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
  
  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