- using R version 4.6.0 (2026-04-24 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-06 11:26:01 UTC
- checking for file 'kvkapiR/DESCRIPTION' ... OK
- this is package 'kvkapiR' version '0.1.2'
- 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 'kvkapiR' 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 whether startup messages can be suppressed ... [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 examples ... [1s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [514s] ERROR
Running 'testthat.R' [514s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for packages that use 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(kvkapiR)
>
> test_check("kvkapiR")
v KVK_API_KEY has been set for this session.
i You are using the KvK test environment. Test data will be returned.
i You are using the KvK test environment. Test data will be returned.
i You are using the KvK test environment. Test data will be returned.
Saving _problems/test-kvk_retrieve-100.R
Saving _problems/test-kvk_retrieve-101.R
Saving _problems/test-kvk_retrieve-102.R
Saving _problems/test-kvk_search-8.R
i No results found (HTTP 404).
v Max cost: EUR 5.00 for this session
Format: "summary"
Records: 1
Format: "detailed"
Records: 2
[ FAIL 4 | WARN 1 | SKIP 11 | PASS 169 ]
══ Skipped tests (11) ══════════════════════════════════════════════════════════
• API key not available (3): 'test-kvk_retrieve.R:78:3',
'test-list-to-tibble-robustness.R:71:3',
'test-list-to-tibble-robustness.R:101:3'
• API key not available for usage tracking tests (4):
'test-utils-usage-tracking.R:89:3', 'test-utils-usage-tracking.R:116:3',
'test-utils-usage-tracking.R:330:3', 'test-utils-usage-tracking.R:419:3'
• Complex mocking required for httr2 responses (1):
'test-ipd-error-handling.R:44:3'
• No API key available (1): 'test-ipd-error-handling.R:60:3'
• No API key available for testing (2): 'test-kvk_search.R:32:3',
'test-kvk_search.R:64:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-kvk_retrieve.R:100:3'): kvk_get_naamgeving works with test environment ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-kvk_retrieve.R:101:3'): kvk_get_naamgeving works with test environment ──
Expected `result$kvkNummer` to equal "68750110".
Differences:
`actual` is NULL
`expected` is a character vector ('68750110')
── Failure ('test-kvk_retrieve.R:102:3'): kvk_get_naamgeving works with test environment ──
Expected `"naam" %in% names(result)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Error ('test-kvk_search.R:5:3'): kvk_search works with test environment ─────
Error in `value[[3L]](cond)`: Failed to perform HTTP request.
Backtrace:
▆
1. ├─testthat::expect_message(...) at test-kvk_search.R:5: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. └─kvkapiR::kvk_search(plaats = "Utrecht", test_environment = TRUE)
8. └─base::tryCatch(...)
9. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
10. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
11. └─value[[3L]](cond)
12. └─cli::cli_abort(e$message)
13. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 11 | PASS 169 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [4s] OK
- DONE
Status: 1 ERROR