* using log directory 'd:/Rcompile/CRANpkg/local/4.5/StreamCatTools.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'StreamCatTools/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'StreamCatTools' version '0.6.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'StreamCatTools' can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-release-windows-x86_64/StreamCatTools-00install.html' for details. * checking installed package size ... INFO installed size is 5.0Mb sub-directories of 1Mb or more: doc 4.4Mb * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [0s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [63s] ERROR Running examples in 'StreamCatTools-Ex.R' failed The error most likely occurred in: > ### Name: sc_fullname > ### Title: Lookup Full Metric Name > ### Aliases: sc_fullname > > ### ** Examples > > fullname <- sc_fullname(metric='clay') Warning in open.connection(con, "rb") : URL 'https://api.epa.gov/StreamCat/streams/datadictionary': Timeout of 60 seconds was reached Error in open.connection(con, "rb") : cannot open the connection to 'https://api.epa.gov/StreamCat/streams/datadictionary' Calls: sc_fullname ... parse_and_simplify -> parseJSON -> parse_con -> open -> open.connection Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [254s] ERROR Running 'testthat.R' [253s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(StreamCatTools) > > test_check("StreamCatTools") [ FAIL 2 | WARN 2 | SKIP 0 | PASS 66 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-lc_get_params.R:33:3'): lc_get_params for county parameters ──── Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/lakes/metrics' Backtrace: ▆ 1. └─StreamCatTools::lc_get_params(param = "county") at test-lc_get_params.R:33:3 2. └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/lakes/metrics") 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_con(txt, bigint_as_char) 6. ├─base::open(con, "rb") 7. └─base::open.connection(con, "rb") ── Error ('test-sc_getdata.R:28:3'): sc_get_data for a hydroregion and ws metrics returns a data frame ── Error in `open.connection(con, "rb")`: cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics' Backtrace: ▆ 1. └─StreamCatTools::sc_get_data(...) at test-sc_getdata.R:28:3 2. └─StreamCatTools::sc_get_params(param = "metric_names") 3. └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics") 4. └─jsonlite:::parse_and_simplify(...) 5. └─jsonlite:::parseJSON(txt, bigint_as_char) 6. └─jsonlite:::parse_con(txt, bigint_as_char) 7. ├─base::open(con, "rb") 8. └─base::open.connection(con, "rb") [ FAIL 2 | WARN 2 | SKIP 0 | PASS 66 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [149s] ERROR Error(s) in re-building vignettes: --- re-building 'Applications.Rmd' using rmarkdown --- finished re-building 'Applications.Rmd' --- re-building 'Introduction.Rmd' using rmarkdown Quitting from Introduction.Rmd:53-60 [params] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `open.connection()`: ! cannot open the connection to 'https://api.epa.gov/StreamCat/streams/metrics' --- Backtrace: ▆ 1. └─StreamCatTools::sc_get_params(param = "metric_names") 2. └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/streams/metrics") 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_con(txt, bigint_as_char) 6. ├─base::open(con, "rb") 7. └─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' --- failed re-building 'Introduction.Rmd' --- re-building 'LakeCat.Rmd' using rmarkdown Quitting from LakeCat.Rmd:53-56 [params2] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `open.connection()`: ! cannot open the connection to 'https://api.epa.gov/StreamCat/lakes/metrics' --- Backtrace: ▆ 1. └─StreamCatTools::lc_get_params(param = "variable_info") 2. └─jsonlite::fromJSON("https://api.epa.gov/StreamCat/lakes/metrics") 3. └─jsonlite:::parse_and_simplify(...) 4. └─jsonlite:::parseJSON(txt, bigint_as_char) 5. └─jsonlite:::parse_con(txt, bigint_as_char) 6. ├─base::open(con, "rb") 7. └─base::open.connection(con, "rb") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'LakeCat.Rmd' failed with diagnostics: cannot open the connection to 'https://api.epa.gov/StreamCat/lakes/metrics' --- failed re-building 'LakeCat.Rmd' SUMMARY: processing the following files failed: 'Introduction.Rmd' 'LakeCat.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 3 ERRORs