- using R Under development (unstable) (2026-06-18 r90173 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
* current time: 2026-06-19 05:37:37 UTC
- checking for file 'BFS/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'BFS' version '0.7.1'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'BFS' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [4s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [8s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [13m] ERROR
Running 'testthat.R' [13m]
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")
Saving _problems/test-bfs_download_asset-6.R
Saving _problems/test-bfs_get_asset_metadata-5.R
Saving _problems/test-bfs_get_asset_metadata-14.R
> Waiting 2s for retry backoff
Saving _problems/test-bfs_get_catalog_data-5.R
> Waiting 1.8s for retry backoff
Saving _problems/test-bfs_get_catalog_data-13.R
> Waiting 1.3s for retry backoff
Saving _problems/test-bfs_get_catalog_data-20.R
> Waiting 1.9s for retry backoff
Saving _problems/test-bfs_get_catalog_data-27.R
> Waiting 1.5s for retry backoff
Saving _problems/test-bfs_get_catalog_data-34.R
=>----------------------------- 2% | ETA: 1m
==>---------------------------- 7% | ETA: 1m
===>--------------------------- 11% | ETA: 1m
=====>------------------------- 16% | ETA: 1m
=======>----------------------- 23% | ETA: 46s
=========>--------------------- 29% | ETA: 41s
===========>------------------- 36% | ETA: 35s
============>------------------ 41% | ETA: 33s
=============>----------------- 45% | ETA: 32s
===============>--------------- 50% | ETA: 28s
=================>------------- 56% | ETA: 25s
==================>------------ 61% | ETA: 22s
====================>---------- 66% | ETA: 20s
=====================>--------- 71% | ETA: 16s
=======================>------- 77% | ETA: 13s
=========================>----- 83% | ETA: 10s
===========================>--- 89% | ETA: 6s
============================>-- 94% | ETA: 3s
> Waiting 1.6s for retry backoff
Saving _problems/test-bfs_get_catalog_tables-5.R
> Waiting 1.8s for retry backoff
Saving _problems/test-bfs_get_catalog_tables-13.R
> Waiting 2s for retry backoff
Saving _problems/test-bfs_get_catalog_tables-20.R
[ FAIL 11 | WARN 0 | SKIP 9 | PASS 37 ]
══ Skipped tests (9) ═══════════════════════════════════════════════════════════
• On CRAN (9): 'test-bfs_download_geodata.R:6:3',
'test-bfs_get_base_maps.R:5:3', 'test-bfs_get_base_maps.R:15:3',
'test-bfs_get_base_maps.R:25:3', 'test-bfs_get_base_maps.R:35:3',
'test-bfs_get_base_maps.R:45:3', 'test-bfs_get_base_maps.R:53:3',
'test-bfs_get_base_maps.R:63:3', 'test-bfs_get_base_maps.R:73:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-bfs_download_asset.R:6:3'): bfs_download_asset() works ─────────
<curl_error_http_returned_error/curl_error/error/condition>
Error in `curl::curl_download(url = paste0("https://dam-api.bfs.admin.ch/hub/api/dam/assets/", id, "/master"), destfile = destfile, quiet = quiet, mode = mode, handle = handle)`: HTTP response code said error [dam-api.bfs.admin.ch]:
The requested URL returned error: 503
Backtrace:
▆
1. ├─BFS::bfs_download_asset(number_asset = "24367729", destfile = tmp) at test-bfs_download_asset.R:6:3
2. │ └─curl::curl_download(...)
3. └─curl:::raise_libcurl_error(...)
── Error ('test-bfs_get_asset_metadata.R:5:3'): bfs_get_asset_metadata() returns a none-empty list ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_asset_metadata(number_asset = "24367729") at test-bfs_get_asset_metadata.R:5:3
2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_asset_metadata.R:14:3'): bfs_get_asset_metadata() returns a none-empty list ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_asset_metadata(number_bfs = "px-x-1502040100_131") at test-bfs_get_asset_metadata.R:14:3
2. │ └─... %>% httr2::resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_data.R:5:3'): bfs_get_catalog_data() returns a data.frame of 5 rows ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_data(limit = 5) at test-bfs_get_catalog_data.R:5:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_data.R:13:3'): bfs_get_catalog_data() using some arguments ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_data(...) at test-bfs_get_catalog_data.R:13:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_data.R:20:3'): bfs_get_catalog_data() using order_nr argument ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_data(order_nr = "px-x-1502040100_131") at test-bfs_get_catalog_data.R:20:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_data.R:27:3'): bfs_get_catalog_data() using order_nr argument ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_data(order_nr = "px-x-1502040100_131") at test-bfs_get_catalog_data.R:27:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_data.R:34:3'): bfs_get_catalog_data() using prodima argument ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_data(prodima = 900210, limit = 5) at test-bfs_get_catalog_data.R:34:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_tables.R:5:3'): bfs_get_catalog_tables() returns a data.frame of 5 rows ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_tables(limit = 5) at test-bfs_get_catalog_tables.R:5:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_tables.R:13:3'): bfs_get_catalog_tables() using title argument ──
<httr2_http_503/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `req_perform(.)`: HTTP 503 Service Unavailable.
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_tables(title = "student", limit = 5) at test-bfs_get_catalog_tables.R:13:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
9. ├─rlang::catch_cnd(...)
10. │ ├─rlang::eval_bare(...)
11. │ ├─base::tryCatch(...)
12. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
13. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
14. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
15. │ └─base::force(expr)
16. └─rlang::abort(...)
── Error ('test-bfs_get_catalog_tables.R:20:3'): bfs_get_catalog_tables() using prodima argument ──
<httr2_failure/httr2_error/rlang_error/error/condition>
Error in `req_perform(.)`: Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached [dam-api.bfs.admin.ch]:
Operation too slow. Less than 1 bytes/sec transferred the last 600 seconds
Backtrace:
▆
1. ├─BFS::bfs_get_catalog_tables(prodima = 900210, limit = 5) at test-bfs_get_catalog_tables.R:20:3
2. │ └─... %>% resp_body_json(simplifyVector = TRUE)
3. ├─httr2::resp_body_json(., simplifyVector = TRUE)
4. │ └─httr2:::check_response(resp)
5. │ └─httr2:::is_response(resp)
6. └─httr2::req_perform(.)
7. └─httr2:::handle_resp(req, resp, error_call = error_call)
8. └─rlang::cnd_signal(resp)
[ FAIL 11 | WARN 0 | SKIP 9 | PASS 37 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [19s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 1 ERROR