CRAN Package Check Results for Maintainer ‘Marc Weber <weber.marc at epa.gov>’

Last updated on 2025-10-21 00:50:54 CEST.

Package FAIL ERROR NOTE OK
StreamCatTools 1 1 3 8

Package StreamCatTools

Current CRAN status: FAIL: 1, ERROR: 1, NOTE: 3, OK: 8

Version: 0.9.0
Check: tests
Result: ERROR Running ‘testthat.R’ [0m/54m] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(StreamCatTools) > > test_check("StreamCatTools") [ FAIL 18 | WARN 17 | SKIP 0 | PASS 65 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-lc_get_params.R:6:3'): lc_get_params for metric_names parameters ── length(params) is not strictly more than 500. Difference: -500 ── Error ('test-lc_get_params.R:12:3'): lc_get_params for variable_info parameters ── Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value Backtrace: ▆ 1. └─testthat::expect_gt(nrow(params), 100) at test-lc_get_params.R:12:3 2. └─testthat:::expect_compare(">", act, exp) 3. └─rlang::abort("Result of comparison must be a single logical value") ── Error ('test-lc_get_params.R:16:3'): lc_get_metric_names ──────────────────── Error in `names(results) <- names_new`: attempt to set an attribute on NULL Backtrace: ▆ 1. └─StreamCatTools::lc_get_metric_names(category = "Natural") at test-lc_get_params.R:16:3 ── Failure ('test-lc_get_params.R:46:3'): lc_get_params for county parameters ── nrow(params) not equal to 3108. target is NULL, current is numeric ── Failure ('test-lc_get_params.R:47:3'): lc_get_params for county parameters ── names(params) not equal to c("fips", "state", "county_name"). target is NULL, current is character ── Failure ('test-lc_getdata.R:9:13'): lc_get_data for a sample COMID returns a data frame ── nrow(df) not equal to 3. target is NULL, current is numeric ── Failure ('test-lc_getdata.R:10:13'): lc_get_data for a sample COMID returns a data frame ── ncol(df) not equal to 7. target is NULL, current is numeric ── Failure ('test-lc_getdata.R:33:3'): lc_get_data for a county and ws metrics returns a data frame ── nrow(df) not equal to 23. target is NULL, current is numeric ── Failure ('test-lc_getdata.R:34:3'): lc_get_data for a county and ws metrics returns a data frame ── ncol(df) not equal to 2. target is NULL, current is numeric ── Failure ('test-sc_get_params.R:7:13'): sc_get_params for area of interest parameters ── `params` not equal to c("cat", "catrp100", "other", "ws", "wsrp100"). target is NULL, current is character ── Error ('test-sc_get_params.R:28:3'): sc_get_params for variable_info parameters ── Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value Backtrace: ▆ 1. └─testthat::expect_gt(nrow(params), 100) at test-sc_get_params.R:28:3 2. └─testthat:::expect_compare(">", act, exp) 3. └─rlang::abort("Result of comparison must be a single logical value") ── Failure ('test-sc_get_params.R:34:3'): sc_get_params for StreamCat metric categories ── length(params) is not strictly more than 8. Difference: -8 ── Failure ('test-sc_get_params.R:40:3'): sc_get_params for StreamCat datasets ── length(params) is not strictly more than 30. Difference: -30 ── Failure ('test-sc_get_params.R:53:3'): sc_get_params for county parameters ── nrow(params) not equal to 3108. target is NULL, current is numeric ── Failure ('test-sc_get_params.R:54:3'): sc_get_params for county parameters ── names(params) not equal to c("fips", "state", "county_name"). target is NULL, current is character ── Error ('test-sc_get_params.R:67:3'): sc_get_metric_names for datasets ─────── Error in `names(results) <- names_new`: attempt to set an attribute on NULL Backtrace: ▆ 1. └─StreamCatTools::sc_get_metric_names(...) at test-sc_get_params.R:67:3 ── Failure ('test-sc_getdata.R:15:3'): sc_get_data for multiple COMIDs and areas and metrics returns a data frame ── nrow(df) not equal to 3. target is NULL, current is numeric ── Failure ('test-sc_getdata.R:16:3'): sc_get_data for multiple COMIDs and areas and metrics returns a data frame ── ncol(df) not equal to 7. target is NULL, current is numeric [ FAIL 18 | WARN 17 | SKIP 0 | PASS 65 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.0
Check: re-building of vignette outputs
Result: FAIL
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [10s/91s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(StreamCatTools) > > test_check("StreamCatTools") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-lc_get_params.R:18:3'): lc_get_metric_names ────────────────── nrow(metrics) is not strictly more than 70. Difference: -35 [ FAIL 1 | WARN 0 | SKIP 0 | PASS 86 ] Error: Test failures Execution halted Flavor: r-patched-linux-x86_64

Version: 0.9.0
Check: installed package size
Result: NOTE installed size is 5.1Mb sub-directories of 1Mb or more: doc 4.4Mb Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64