- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'wbwdi/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'wbwdi' version '1.0.0'
- 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 'wbwdi' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' 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 R 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [7s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [9s] ERROR
Running 'testthat.R' [9s]
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(wbwdi)
>
> test_check("wbwdi")
[ FAIL 1 | WARN 0 | SKIP 25 | PASS 108 ]
══ Skipped tests (25) ══════════════════════════════════════════════════════════
• On CRAN (25): 'tests-perform_request.R:24:3', 'tests-perform_request.R:31:3',
'tests-perform_request.R:93:3', 'tests-wdi_get.R:47:3',
'tests-wdi_get.R:62:3', 'tests-wdi_get.R:78:3', 'tests-wdi_get.R:85:3',
'tests-wdi_get.R:95:3', 'tests-wdi_get.R:105:3', 'tests-wdi_get.R:126:3',
'tests-wdi_get_entities.R:20:3', 'tests-wdi_get_entities.R:77:3',
'tests-wdi_get_income_levels.R:2:3', 'tests-wdi_get_income_levels.R:31:3',
'tests-wdi_get_indicators.R:20:3', 'tests-wdi_get_indicators.R:62:3',
'tests-wdi_get_languages.R:2:3', 'tests-wdi_get_lending_types.R:8:3',
'tests-wdi_get_lending_types.R:56:3', 'tests-wdi_get_regions.R:8:3',
'tests-wdi_get_regions.R:75:3', 'tests-wdi_get_sources.R:8:3',
'tests-wdi_get_sources.R:92:3', 'tests-wdi_get_topics.R:8:3',
'tests-wdi_get_topics.R:69:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('tests-wdi_search.R:14:3'): wdi_search returns rows with specified keywords in any column ──
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::map_lgl(seq_len(nrow(data)), function(i) {
any(purrr::map_lgl(data[columns_to_search], ~{
col_value <- .x[[i]]
if (is.list(col_value) && length(col_value) > 0) {
any(purrr::map_lgl(unlist(col_value, recursive = TRUE,
use.names = FALSE), ~contains_keyword(., keywords) %||%
FALSE))
} else if (!is.null(col_value) && length(col_value) >
0) {
contains_keyword(col_value, keywords) %||% FALSE
} else {
FALSE
}
}))
})`: i In index: 1.
Caused by error in `purrr::map_lgl()`:
i In index: 1.
i With name: id.
Caused by error in `contains_keyword(col_value, keywords) %||% FALSE`:
! could not find function "%||%"
[ FAIL 1 | WARN 0 | SKIP 25 | PASS 108 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [2s] OK
- checking PDF version of manual ... [22s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR