Package: infectiousR Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘infectiousR_vignette.Rmd’ using rmarkdown Quitting from infectiousR_vignette.Rmd:83-105 [covid-stats-simple-plot] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `UseMethod()`: ! no applicable method for 'filter' applied to an object of class "NULL" --- Backtrace: ▆ 1. ├─... %>% ... 2. ├─ggplot2::ggplot(...) 3. ├─dplyr::mutate(., case_rate = (cases/population) * 1e+05) 4. ├─dplyr::select(., -updated, -starts_with("today")) 5. └─dplyr::filter(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'infectiousR_vignette.Rmd' failed with diagnostics: no applicable method for 'filter' applied to an object of class "NULL" --- failed re-building ‘infectiousR_vignette.Rmd’ SUMMARY: processing the following file failed: ‘infectiousR_vignette.Rmd’ Error: Vignette re-building failed. Execution halted Package: ipumsr Check: tests New result: ERROR Running ‘testthat.R’ [74s/73s] 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(ipumsr) > > test_check("ipumsr") Saving _problems/test_api_process_extract-458.R Saving _problems/test_api_process_extract-513.R Saving _problems/test_api_process_extract-576.R Saving _problems/test_api_process_extract-637.R Saving _problems/test_api_process_extract-678.R [ FAIL 5 | WARN 0 | SKIP 6 | PASS 858 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • On CRAN (6): 'test_api_helpers.R:3:1', 'test_api_helpers.R:23:1', 'test_micro_chunked.R:24:3', 'test_read_agg.R:7:1', 'test_read_agg.R:372:1', 'test_shape_read.R:81:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_api_process_extract.R:454:7'): Can download microdata extract with extract object ── Error in `set_body(response_body, vcr_response$disk)`: length(body) <= 1 is not TRUE Backtrace: ▆ 1. ├─testthat::expect_message(...) at test_api_process_extract.R:452:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─base::withCallingHandlers(...) 9. └─ipumsr::download_extract(...) at test_api_process_extract.R:454:7 10. ├─ipumsr:::ipums_extract_specific_download(...) 11. └─ipumsr:::ipums_extract_specific_download.micro_extract(...) 12. └─ipumsr:::ipums_api_download_request(...) 13. └─ipumsr:::ipums_api_request(...) 14. └─httr::VERB(...) 15. └─httr:::request_perform(req, hu$handle$handle) 16. └─httr:::perform_callback("request", req = req) 17. └─vcr (local) callback(...) 18. └─RequestHandlerHttr$new(req)$handle() 19. └─self$on_stubbed_by_vcr_request(vcr_response) 20. └─vcr:::serialize_to_httr(self$request_original, vcr_response) 21. └─vcr:::set_body(response_body, vcr_response$disk) 22. └─base::stopifnot(length(body) <= 1) ── Error ('test_api_process_extract.R:509:7'): Can download NHGIS extract with extract object ── Error in `purrr::map2_chr(urls, file_paths, ~ipums_api_download_request(.x, .y, overwrite = overwrite, progress = progress, api_key = api_key))`: i In index: 1. i With name: data. Caused by error in `set_body()`: ! length(body) <= 1 is not TRUE Backtrace: ▆ 1. ├─testthat::expect_message(...) at test_api_process_extract.R:507:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─base::withCallingHandlers(...) 9. ├─ipumsr::download_extract(...) at test_api_process_extract.R:509:7 10. │ ├─ipumsr:::ipums_extract_specific_download(...) 11. │ └─ipumsr:::ipums_extract_specific_download.agg_extract(...) 12. │ └─purrr::map2_chr(...) 13. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─ipumsr (local) .f(.x[[i]], .y[[i]], ...) 18. │ └─ipumsr:::ipums_api_download_request(...) 19. │ └─ipumsr:::ipums_api_request(...) 20. │ └─httr::VERB(...) 21. │ └─httr:::request_perform(req, hu$handle$handle) 22. │ └─httr:::perform_callback("request", req = req) 23. │ └─vcr (local) callback(...) 24. │ └─RequestHandlerHttr$new(req)$handle() 25. │ └─self$on_stubbed_by_vcr_request(vcr_response) 26. │ └─vcr:::serialize_to_httr(self$request_original, vcr_response) 27. │ └─vcr:::set_body(response_body, vcr_response$disk) 28. │ └─base::stopifnot(length(body) <= 1) 29. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p))) 30. └─purrr (local) ``(``) 31. └─cli::cli_abort(...) 32. └─rlang::abort(...) ── Error ('test_api_process_extract.R:572:7'): Can download extract with extract id ── Error in `set_body(response_body, vcr_response$disk)`: length(body) <= 1 is not TRUE Backtrace: ▆ 1. ├─testthat::expect_message(...) at test_api_process_extract.R:570:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─base::withCallingHandlers(...) 9. └─ipumsr::download_extract(...) at test_api_process_extract.R:572:7 10. ├─ipumsr:::ipums_extract_specific_download(...) 11. └─ipumsr:::ipums_extract_specific_download.micro_extract(...) 12. └─ipumsr:::ipums_api_download_request(...) 13. └─ipumsr:::ipums_api_request(...) 14. └─httr::VERB(...) 15. └─httr:::request_perform(req, hu$handle$handle) 16. └─httr:::perform_callback("request", req = req) 17. └─vcr (local) callback(...) 18. └─RequestHandlerHttr$new(req)$handle() 19. └─self$on_stubbed_by_vcr_request(vcr_response) 20. └─vcr:::serialize_to_httr(self$request_original, vcr_response) 21. └─vcr:::set_body(response_body, vcr_response$disk) 22. └─base::stopifnot(length(body) <= 1) ── Error ('test_api_process_extract.R:633:7'): Can download shapefile-only extract ── Error in `purrr::map2_chr(urls, file_paths, ~ipums_api_download_request(.x, .y, overwrite = overwrite, progress = progress, api_key = api_key))`: i In index: 1. i With name: shape. Caused by error in `set_body()`: ! length(body) <= 1 is not TRUE Backtrace: ▆ 1. ├─testthat::expect_message(...) at test_api_process_extract.R:631:3 2. │ └─testthat:::expect_condition_matching_(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─vcr::use_cassette(...) 8. │ └─base::withCallingHandlers(...) 9. ├─ipumsr::download_extract(...) at test_api_process_extract.R:633:7 10. │ ├─ipumsr:::ipums_extract_specific_download(...) 11. │ └─ipumsr:::ipums_extract_specific_download.agg_extract(...) 12. │ └─purrr::map2_chr(...) 13. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─ipumsr (local) .f(.x[[i]], .y[[i]], ...) 18. │ └─ipumsr:::ipums_api_download_request(...) 19. │ └─ipumsr:::ipums_api_request(...) 20. │ └─httr::VERB(...) 21. │ └─httr:::request_perform(req, hu$handle$handle) 22. │ └─httr:::perform_callback("request", req = req) 23. │ └─vcr (local) callback(...) 24. │ └─RequestHandlerHttr$new(req)$handle() 25. │ └─self$on_stubbed_by_vcr_request(vcr_response) 26. │ └─vcr:::serialize_to_httr(self$request_original, vcr_response) 27. │ └─vcr:::set_body(response_body, vcr_response$disk) 28. │ └─base::stopifnot(length(body) <= 1) 29. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p))) 30. └─purrr (local) ``(``) 31. └─cli::cli_abort(...) 32. └─rlang::abort(...) ── Error ('test_api_process_extract.R:673:5'): Can download supplemental data files ── Error in `set_body(response_body, vcr_response$disk)`: length(body) <= 1 is not TRUE Backtrace: ▆ 1. ├─vcr::use_cassette(...) at test_api_process_extract.R:672:3 2. │ └─base::withCallingHandlers(...) 3. └─ipumsr::download_supplemental_data(...) at test_api_process_extract.R:673:5 4. └─ipumsr:::ipums_api_download_request(...) 5. └─ipumsr:::ipums_api_request(...) 6. └─httr::VERB(...) 7. └─httr:::request_perform(req, hu$handle$handle) 8. └─httr:::perform_callback("request", req = req) 9. └─vcr (local) callback(...) 10. └─RequestHandlerHttr$new(req)$handle() 11. └─self$on_stubbed_by_vcr_request(vcr_response) 12. └─vcr:::serialize_to_httr(self$request_original, vcr_response) 13. └─vcr:::set_body(response_body, vcr_response$disk) 14. └─base::stopifnot(length(body) <= 1) [ FAIL 5 | WARN 0 | SKIP 6 | PASS 858 ] Error: ! Test failures. Warning message: `check_cassette_names()` was deprecated in vcr 2.0.0. Execution halted Package: plotly Check: tests New result: ERROR Running ‘testthat.R’ [2s/17s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library("testthat") > library("plotly") Loading required package: ggplot2 Attaching package: 'plotly' The following object is masked from 'package:ggplot2': last_plot The following object is masked from 'package:stats': filter The following object is masked from 'package:graphics': layout > > test_check("plotly") Error in `source_dir()`: ! Failed to evaluate './helper-skip.R'. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [api.r-hub.io]: Resolving timed out after 10001 milliseconds Backtrace: ▆ 1. ├─testthat::test_check("plotly") 2. │ └─testthat::test_dir(...) 3. │ └─testthat:::test_files(...) 4. │ └─testthat:::test_files_serial(...) 5. │ └─testthat:::test_files_setup_state(...) 6. │ └─testthat::source_test_helpers(".", env) 7. │ └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE) 8. │ └─base::lapply(...) 9. │ └─testthat (local) FUN(X[[i]], ...) 10. │ └─testthat::source_file(...) 11. │ ├─base::withCallingHandlers(...) 12. │ └─base::eval(exprs, env) 13. │ └─base::eval(exprs, env) 14. │ └─rversions::r_release() at ./helper-skip.R:2:1 15. │ └─rversions:::api_version_df1("resolve/release", dots) 16. │ ├─base::as.list(api(endpoint)) 17. │ └─rversions:::api(endpoint) 18. │ └─curl::curl_fetch_memory(url) 19. ├─curl:::raise_libcurl_error(...) 20. │ └─base::stop(e) 21. └─testthat (local) ``(``) 22. └─cli::cli_abort(...) 23. └─rlang::abort(...) Execution halted