Running ‘testthat.R’ [35s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(UKFE)
  > 
  > test_check("UKFE")
  
  Attaching package: 'evd'
  
  The following object is masked from 'package:lmomco':
  
      pp
  
  [1] "BFIHOST19 is not in the xml file and has been replaced by BFIHOST"
  [1] "One or more catchment descriptors are missing from the xml file"
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  [1] "Warning: iug = TRUE and the closest site in catchment descriptor space has URBEXT2000 < UrbMax. Group formed as if iug = FALSE"
  [1] "URBEXT > 0.03, urban adjustment is recommended"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "Peaks per year: 1.867263"
  [1] "URBEXT > 0.03, urban adjustment is recommended"
  [1] "URBEXT > 0.03, urban adjustment is recommended"
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1636 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-All.R:1602:3'): LKurt returns NaN for constant vector ────────
  is.nan(result) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1636 ]
  Error: Test failures
  Execution halted