Package check result: OK Changes to worse in reverse depends: Package: BFS Check: tests New result: ERROR Running ‘testthat.R’ [17s/147s] 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(BFS) > > test_check("BFS") ==>---------------------------- 5% | ETA: 41s ====>-------------------------- 12% | ETA: 39s =====>------------------------- 18% | ETA: 37s ========>---------------------- 25% | ETA: 34s ==========>-------------------- 32% | ETA: 30s ===========>------------------- 38% | ETA: 36s ============>------------------ 41% | ETA: 33s ==============>---------------- 48% | ETA: 28s =================>------------- 55% | ETA: 24s ===================>----------- 62% | ETA: 20s =====================>--------- 69% | ETA: 16s =======================>------- 76% | ETA: 12s =========================>----- 83% | ETA: 8s ===========================>--- 90% | ETA: 5s =============================>- 97% | ETA: 1s [ FAIL 7 | WARN 1 | SKIP 0 | PASS 38 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-bfs_get_base_maps.R:5:3'): Get Switzerland base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "suis") at test-bfs_get_base_maps.R:5:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:13:3'): Get Cantons base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "kant") at test-bfs_get_base_maps.R:13:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:21:3'): Get Canton Capitals base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "stkt", type = "Pnts", category = "kk") at test-bfs_get_base_maps.R:21:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:29:3'): Get Lake base map data as sf works ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "seen", category = "11") at test-bfs_get_base_maps.R:29:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:43:3'): bfs_get_base_maps() with gf_ch category ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "suis", category = "gf_ch") at test-bfs_get_base_maps.R:43:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:51:3'): bfs_get_base_maps() with 'polg' geom and date ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: argument is of length zero Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "polg", date = "20230101") at test-bfs_get_base_maps.R:51:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) ── Error ('test-bfs_get_base_maps.R:59:3'): bfs_get_base_maps() with 'polg' geom and recent date different ── Error in `if (nchar(dsn) < 1) stop("`dsn` must point to a source, not an empty string.", call. = FALSE)`: missing value where TRUE/FALSE needed Backtrace: ▆ 1. └─BFS::bfs_get_base_maps(geom = "kant", most_recent = TRUE) at test-bfs_get_base_maps.R:59:3 2. └─sf::read_sf(file_selected) 3. ├─sf::st_read(...) 4. └─sf:::st_read.character(...) [ FAIL 7 | WARN 1 | SKIP 0 | PASS 38 ] Error: Test failures Execution halted Package: dhis2r [Old version: 0.2.0, New version: 0.2.1] Check: examples New result: ERROR Running examples in ‘dhis2r-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Dhis2r > ### Title: Connect and pull/get data from a DHIS2 instance > ### Aliases: Dhis2r > > ### ** Examples > > # Load dhis2r > library(dhis2r) > # connect to the DHIS2 instance > dhis2_play_connection <- Dhis2r$new(base_url = "https://play.im.dhis2.org/stable-2-40-5", + username = "admin", + password = "district") > > # get all the available resources > dhis2_play_connection$get_metadata() [1] "https://play.im.dhis2.org/stable-2-40-5/api/resources" # A tibble: 89 × 4 displayName singular plural href 1 Indicator Groups indicatorGroup indic… http… 2 Organisation Unit Group Sets organisationUnitGroupSet organ… http… 3 Validation Notification Templates validationNotificationTemplate valid… http… 4 Legend Sets legendSet legen… http… 5 Categories category categ… http… 6 Program Data Elements programDataElement progr… http… 7 Tracked Entity Types trackedEntityType track… http… 8 External File Resources externalFileResource exter… http… 9 Program Indicator Groups programIndicatorGroup progr… http… 10 Event Reports eventReport event… http… # ℹ 79 more rows > > # get organisation Units with the default fields i.e c("name","id") > > dhis2_play_connection$get_metadata(endpoint = "organisationUnits") [1] "https://play.im.dhis2.org/stable-2-40-5/api/organisationUnits?fields=name%2Cid" # A tibble: 5 × 1 `response_data[[1]]` 1 2 3 4 5 > > # get a vector of all possible fields of a organisation unit resource > dhis2_play_connection$get_metadata_fields(endpoint = "organisationUnits") [1] "https://play.im.dhis2.org/stable-2-40-5/api/organisationUnits?fields=%3Aall&paging=true&pageSize=1" [1] "access" "ancestors" "attributeValues" [4] "children" "code" "created" [7] "dataSets" "dimensionItem" "dimensionItemType" [10] "displayFormName" "displayName" "displayShortName" [13] "externalAccess" "favorite" "favorites" [16] "href" "id" "lastUpdated" [19] "leaf" "legendSets" "level" [22] "name" "openingDate" "organisationUnitGroups" [25] "parent" "path" "programs" [28] "sharing" "shortName" "translations" [31] "userAccesses" "userGroupAccesses" "users" > > # get organisation Units with additional fields i.e c("name","id", "level") > > dhis2_play_connection$get_metadata(endpoint = "organisationUnits", + fields = c("name","id", "level")) [1] "https://play.im.dhis2.org/stable-2-40-5/api/organisationUnits?fields=name%2Cid%2Clevel" # A tibble: 5 × 1 `response_data[[1]]` 1 2 3 4 5 > > dhis2_play_connection$get_analytics(analytic = c("Uvn6LCg7dVU"), + org_unit = c("O6uvpzGd5pu", "fdc6uOvgoji"), + period = "LAST_12_MONTHS", + output_scheme = "NAME") Error in `req_perform()`: ! HTTP 409 Conflict. Backtrace: ▆ 1. └─dhis2_play_connection$get_analytics(...) 2. └─httr2::req_perform(...) 3. └─httr2:::handle_resp(req, resp, error_call = error_call) 4. └─httr2:::resp_abort(resp, req, body, call = error_call) 5. └─rlang::abort(...) Execution halted Package: osmapiR Check: examples New result: ERROR Running examples in ‘osmapiR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: set_osmapi_connection > ### Title: Configure connections from osmapiR > ### Aliases: set_osmapi_connection get_osmapi_url set_osmapi_url > > ### ** Examples > > ori <- get_osmapi_url() > set_osmapi_connection(server = "testing") Error in req$policies$auth_oauth$cache : $ operator is invalid for atomic vectors Calls: set_osmapi_connection -> logout_osmapi Execution halted Package: osmapiR Check: tests New result: ERROR Running ‘testthat.R’ [1s/1s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(osmapiR) Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright > > test_check("osmapiR") Error in `FUN()`: ! In path: "/home/hornik/tmp/CRAN_recheck/osmapiR.Rcheck/tests/testthat/setup.R" Caused by error in `req$policies$auth_oauth$cache`: ! $ operator is invalid for atomic vectors Backtrace: ▆ 1. ├─testthat::test_check("osmapiR") 2. │ └─testthat::test_dir(...) 3. │ └─testthat:::test_files(...) 4. │ └─testthat:::test_files_serial(...) 5. │ └─testthat:::test_files_setup_state(...) 6. │ └─testthat::source_test_setup(".", env) 7. │ └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE) 8. │ └─base::lapply(...) 9. │ └─testthat (local) FUN(X[[i]], ...) 10. │ └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap) 11. │ ├─base::withCallingHandlers(...) 12. │ └─base::eval(exprs, env) 13. │ └─base::eval(exprs, env) 14. │ └─osmapiR::set_osmapi_connection("testing") at tests/testthat/setup.R:7:1 15. │ └─osmapiR::logout_osmapi() 16. └─base::.handleSimpleError(...) 17. └─testthat (local) h(simpleError(msg, call)) 18. └─rlang::abort(...) Execution halted