Package: BFS Check: tests New result: ERROR Running ‘testthat.R’ [17s/143s] 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") =>----------------------------- 3% | ETA: 45s ===>--------------------------- 10% | ETA: 40s =====>------------------------- 17% | ETA: 36s =======>----------------------- 24% | ETA: 33s =========>--------------------- 31% | ETA: 31s ===========>------------------- 37% | ETA: 28s =============>----------------- 44% | ETA: 25s ===============>--------------- 51% | ETA: 22s =================>------------- 57% | ETA: 19s ===================>----------- 64% | ETA: 16s =====================>--------- 70% | ETA: 13s =======================>------- 77% | ETA: 10s =========================>----- 83% | ETA: 8s ===========================>--- 90% | ETA: 5s =============================>- 96% | ETA: 2s [ 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: 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