Running ‘testthat.R’ [3s/7s]
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