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

Last updated on 2025-10-18 09:50:37 CEST.

Package ERROR NOTE OK
StreamCatTools 3 3 7

Package StreamCatTools

Current CRAN status: ERROR: 3, NOTE: 3, OK: 7

Version: 0.9.0
Check: tests
Result: ERROR Running ‘testthat.R’ [0m/24m] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(StreamCatTools) > > test_check("StreamCatTools") [ FAIL 4 | WARN 5 | SKIP 0 | PASS 83 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-sc_getdata.R:31:3'): sc_get_data for a hydroregion and ws metrics returns a data frame ── nrow(df) not equal to 65968. target is NULL, current is numeric ── Failure ('test-sc_getdata.R:32:3'): sc_get_data for a hydroregion and ws metrics returns a data frame ── ncol(df) not equal to 2. target is NULL, current is numeric ── Failure ('test-sc_nlcd.R:8:13'): sc_get_data for a sample COMID returns a data frame ── nrow(df) not equal to 3. target is NULL, current is numeric ── Failure ('test-sc_nlcd.R:9:13'): sc_get_data for a sample COMID returns a data frame ── ncol(df) not equal to 17. target is NULL, current is numeric [ FAIL 4 | WARN 5 | SKIP 0 | PASS 83 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.0
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘Applications.Rmd’ using rmarkdown Quitting from Applications.Rmd:59-86 [nars] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NULL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Applications.Rmd' failed with diagnostics: `x` and `y` must share the same src. ℹ `x` is a <tbl_df/tbl/data.frame> object. ℹ `y` is a list. ℹ Set `copy = TRUE` if `y` can be copied to the same source as `x` (may be slow). --- failed re-building ‘Applications.Rmd’ --- re-building ‘Introduction.Rmd’ using rmarkdown Quitting from Introduction.Rmd:46-49 [API] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `open.connection()`: ! cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics?name=fert&areaOfInterest=cat&comid=179' --- Backtrace: ▆ 1. └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics?name=fert&areaOfInterest=cat&comid=179") 2. └─jsonlite:::parse_and_simplify(...) 3. └─jsonlite:::parseJSON(txt, bigint_as_char) 4. └─jsonlite:::parse_con(txt, bigint_as_char) 5. ├─base::open(con, "rb") 6. └─base::open.connection(con, "rb") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Introduction.Rmd' failed with diagnostics: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics?name=fert&areaOfInterest=cat&comid=179' --- failed re-building ‘Introduction.Rmd’ --- re-building ‘LakeCat.Rmd’ using rmarkdown Quitting from LakeCat.Rmd:73-76 [get_metric_names] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `names(results) <- names_new`: ! attempt to set an attribute on NULL --- Backtrace: ▆ 1. └─StreamCatTools::lc_get_metric_names(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'LakeCat.Rmd' failed with diagnostics: attempt to set an attribute on NULL --- failed re-building ‘LakeCat.Rmd’ SUMMARY: processing the following files failed: ‘Applications.Rmd’ ‘Introduction.Rmd’ ‘LakeCat.Rmd’ Error: Vignette re-building failed. Execution halted 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.8.0
Check: tests
Result: ERROR Running ‘testthat.R’ [9s/75s] 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-release-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