CRAN Package Check Results for Package readmit

Last updated on 2026-10-24 03:56:18 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.0.1 2.50 39.07 41.57 ERROR
r-devel-linux-x86_64-debian-gcc 0.0.1 2.20 31.59 33.79 OK
r-devel-linux-x86_64-fedora-clang 0.0.1 26.39 OK
r-devel-linux-x86_64-fedora-gcc 0.0.1 27.23 OK
r-devel-windows-x86_64 0.0.1 5.00 87.00 92.00 OK
r-patched-linux-x86_64 0.0.1 2.80 32.91 35.71 OK
r-release-linux-x86_64 0.0.1 2.54 32.72 35.26 OK
r-release-macos-arm64 0.0.1 1.00 30.00 31.00 OK
r-release-macos-x86_64 0.0.1 2.00 39.00 41.00 OK
r-release-windows-x86_64 0.0.1 6.00 306.00 312.00 OK
r-oldrel-macos-arm64 0.0.1 1.00 13.00 14.00 OK
r-oldrel-macos-x86_64 0.0.1 2.00 57.00 59.00 OK
r-oldrel-windows-x86_64 0.0.1 5.00 261.00 266.00 OK

Check Details

Version: 0.0.1
Check: examples
Result: ERROR Running examples in ‘readmit-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: pdc_read > ### Title: Import datasets from the Provider Data Catalog (PDC) > ### Aliases: pdc_read pdc_datasets pdc_topics > > ### ** Examples > > # 1. See list of available data topics > pdc_topics() [1] "Dialysis facilities" [2] "Doctors and clinicians" [3] "Home health services" [4] "Hospice care" [5] "Hospitals" [6] "Inpatient rehabilitation facilities" [7] "Long-term care hospitals" [8] "Nursing homes including rehab services" [9] "Physician office visit costs" [10] "Supplier directory" > > > # 2. See list of datasets available for a topic > hospital_data <- pdc_datasets("Hospitals") > hospital_data # A tibble: 75 × 7 datasetid topic title description issued modified downloadurl <chr> <chr> <chr> <chr> <date> <date> <chr> 1 axe7-s95e Hospitals Ambulatory… This file … 2025-10-01 2025-12-16 https://da… 2 4jcv-atw7 Hospitals Ambulatory… A list of … 2025-10-01 2025-12-16 https://da… 3 wue8-3vwe Hospitals Ambulatory… This file … 2025-10-01 2025-12-16 https://da… 4 hbf-map Hospitals Birthing F… A list of … 2025-07-09 2026-07-28 https://da… 5 muwa-iene Hospitals CMS Medica… This data … 2020-12-10 2026-07-22 https://da… 6 ynj2-r877 Hospitals Complicati… Complicati… 2023-07-05 2026-09-10 https://da… 7 qqw3-t4ie Hospitals Complicati… Complicati… 2020-12-10 2026-09-10 https://da… 8 bs2r-24vh Hospitals Complicati… Complicati… 2020-12-10 2026-09-10 https://da… 9 jfnd-nl7s Hospitals Complicati… Prospectiv… 2024-07-31 2026-09-10 https://da… 10 z8ax-x9j1 Hospitals Complicati… Prospectiv… 2024-07-31 2026-09-10 https://da… # ℹ 65 more rows > > # Find a dataset you want > hospital_data |> + dplyr::filter( + stringr::str_detect( + title, + pattern = "(?i)readmission" + ) + ) # A tibble: 1 × 7 datasetid topic title description issued modified downloadurl <chr> <chr> <chr> <chr> <date> <date> <chr> 1 9n3s-kdb3 Hospitals Hospital Re… In October… 2020-12-10 2026-01-26 https://da… > > > # 3. Use that data set ID to import > pdc_read("9n3s-kdb3") Warning: Failed to open 'https://data.cms.gov/provider-data/sites/default/files/resources/a171bc36c488d3e0dc33ec63abb469a6_1770163617/FY_2026_Hospital_Readmissions_Reduction_Program_Hospital.csv': The requested URL returned error: 403 Error: cannot open the connection Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.0.1
Check: tests
Result: ERROR Running ‘testthat.R’ [2s/5s] 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(readmit) > > test_check("readmit") Saving _problems/test-pdc_read-2.R [ FAIL 1 | WARN 1 | SKIP 0 | PASS 9 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-pdc_read.R:2:3'): A data frame is returned ───────────────────── Error: cannot open the connection Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-pdc_read.R:2:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─methods::is(pdc_read("xubh-q36u"), "data.frame") 5. ├─readmit::pdc_read("xubh-q36u") 6. │ └─readr::read_csv(file = downloadurl, ...) 7. │ └─vroom::vroom(...) 8. │ └─vroom:::vroom_(...) 9. └─vroom (local) `<fn>`(`<curl>`, "rb") 10. └─base::tryCatch(...) 11. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 12. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 13. └─value[[3L]](cond) [ FAIL 1 | WARN 1 | SKIP 0 | PASS 9 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang