* using log directory ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/CDCPLACES.Rcheck’ * using R Under development (unstable) (2024-04-27 r86487) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 18.1.4 (1) Debian flang-new version 18.1.4 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘CDCPLACES/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘CDCPLACES’ version ‘1.1.5’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘CDCPLACES’ can be installed ... OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/CDCPLACES-00install.html' for details. * checking package directory ... OK * checking for future file timestamps ... 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 ... [3s/3s] OK * checking whether the package can be loaded with stated dependencies ... [2s/3s] OK * checking whether the package can be unloaded cleanly ... [2s/3s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK * checking whether the namespace can be unloaded cleanly ... [3s/3s] OK * checking loading without being on the library search path ... [3s/3s] 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 ... [13s/15s] OK * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... 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 R/sysdata.rda ... OK * checking examples ... [3s/13s] ERROR Running examples in ‘CDCPLACES-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_dictionary > ### Title: View the 'CDC PLACES' data dictionary > ### Aliases: get_dictionary > > ### ** Examples > > # First save the data > dictionary <- get_dictionary() Error in curl::curl_fetch_memory(url, handle = handle) : URL rejected: Malformed input to a URL function Calls: get_dictionary ... request_fetch -> request_fetch.write_memory -> Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [3s/15s] ERROR Running ‘testthat.R’ [3s/14s] 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(CDCPLACES) > > test_check("CDCPLACES") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-get_places.R:8:3'): (code run outside of `test_that()`) ──────── Error in `curl::curl_fetch_memory(url, handle = handle)`: URL rejected: Malformed input to a URL function Backtrace: ▆ 1. └─CDCPLACES:::test_check_api("https://data.cdc.gov/resource/swc5-untb.json") at test-get_places.R:8:3 2. ├─httr::http_error(resp) 3. └─httr:::http_error.character(resp) 4. ├─httr::http_error(HEAD(x, ...)) 5. └─httr::HEAD(x, ...) 6. └─httr:::request_perform(req, hu$handle$handle) 7. ├─httr:::request_fetch(req$output, req$url, handle) 8. └─httr:::request_fetch.write_memory(req$output, req$url, handle) 9. └─curl::curl_fetch_memory(url, handle = handle) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... [5s/7s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * DONE Status: 2 ERRORs