Running 'testthat.R' [15m]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(SWMPr)
  Loading required package: ggplot2
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  > 
  > test_check("SWMPr")
  ℹ Google's Terms of Service: <https://mapsplatform.google.com>
    Stadia Maps' Terms of Service: <https://stadiamaps.com/terms-of-service/>
    OpenStreetMap's Tile Usage Policy: <https://operations.osmfoundation.org/policies/tiles/>
  ℹ Please cite ggmap if you use it! Use `citation("ggmap")` for details.
  No encoding supplied: defaulting to UTF-8.
  Importing...
  
  No encoding supplied: defaulting to UTF-8.
  Estimating ecosystem metabolism...
  
  4.52 sec elapsed
  Loading files...
  
  apadbwq.csv 	
  
  Data imported...
  Loading files...
  
  apaebmet.csv 	
  
  Data imported...
  Loading files...
  
  apacpnut.csv 	
  
  Data imported...
  Loading files...
  
  apacp2nut.csv 	
  
  Data imported...
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  Processing QAQC columns...
  
  QAQC processed...No encoding supplied: defaulting to UTF-8.
  No encoding supplied: defaulting to UTF-8.
  No encoding supplied: defaulting to UTF-8.
  [ FAIL 2 | WARN 18 | SKIP 1 | PASS 216 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-import_local.R:81:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-decomp.R:5:3'): decomp decomposes the input data correctly ─────
  Error in ``/.difftime`(24 * 60, chk_step)`: second argument of / cannot be a "difftime" object
  Backtrace:
      ▆
   1. ├─SWMPr::decomp(dcmdat, param = "do_mgl", frequency = "daily") at test-decomp.R:5:3
   2. └─SWMPr:::decomp.swmpr(dcmdat, param = "do_mgl", frequency = "daily")
   3.   ├─SWMPr::decomp(...)
   4.   └─SWMPr:::decomp.default(...)
   5.     └─base::`/.difftime`(24 * 60, chk_step)
  ── Error ('test-import_local.R:126:3'): import_local works with downstream functions when keep_qaqcstatus = T ──
  Error in ``/.difftime`(24 * 60, chk_step)`: second argument of / cannot be a "difftime" object
  Backtrace:
      ▆
   1. ├─SWMPr::decomp(datin, param = "do_mgl", frequency = "daily") at test-import_local.R:126:3
   2. └─SWMPr:::decomp.swmpr(datin, param = "do_mgl", frequency = "daily")
   3.   ├─SWMPr::decomp(...)
   4.   └─SWMPr:::decomp.default(...)
   5.     └─base::`/.difftime`(24 * 60, chk_step)
  
  [ FAIL 2 | WARN 18 | SKIP 1 | PASS 216 ]
  Error: Test failures
  Execution halted