Running ‘test-all.R’ [23s/33s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > ## Test `countrycode` using the `testthat` package
  > 
  > ## Setup
  > library(testthat)
  > 
  > ## Runs the tests in tests/testthat
  > test_check('countrycode')
  Loading required package: countrycode
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-nomatch.R:14:5): nomatch: numeric and character output types ──
  The argument `nomatch` must be NULL, NA, or of the same class
                  as the destination vector. Filling-in bad matches with NA instead.
  Backtrace:
   1. testthat::expect_equal(...) test-nomatch.R:14:4
   4. countrycode::countrycode("XXX", "country.name", "cowc", nomatch = 0)
  ── Warning (test-nomatch.R:15:5): nomatch: numeric and character output types ──
  The argument `nomatch` must be NULL, NA, or of the same class
                  as the destination vector. Filling-in bad matches with NA instead.
  Backtrace:
   1. testthat::expect_equal(...) test-nomatch.R:15:4
   4. countrycode::countrycode("XXX", "country.name", "cown", nomatch = 0)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-countryname.R:5:5): output types ────────────────────────────────
  Error: sourcevar must be a character or numeric vector. This error often
               arises when users pass a tibble (e.g., from dplyr) instead of a
               column vector from a data.frame (i.e., my_tbl[, 2] vs. my_df[, 2]
                                                vs. my_tbl[[2]])
  Backtrace:
      █
   1. ├─testthat::expect_identical(countryname("ジンバブエ"), "Zimbabwe") test-countryname.R:5:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─countrycode::countryname("ジンバブエ")
   5.   └─countrycode::countrycode(...)
  ── Failure (test-nomatch.R:14:5): nomatch: numeric and character output types ──
  countrycode("XXX", "country.name", "cowc", nomatch = 0) not equal to "0".
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-nomatch.R:15:5): nomatch: numeric and character output types ──
  countrycode("XXX", "country.name", "cown", nomatch = 0) not equal to 0.
  Modes: list, numeric
  Component 1: target is NULL, current is numeric
  ── Failure (test-regex-special.R:10:5): names that should return NA ────────────
  no_warn_iso3c_of("ROC") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:11:5): names that should return NA ────────────
  no_warn_iso3c_of("united arab republic") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:12:5): names that should return NA ────────────
  no_warn_iso3c_of("Southern Africa") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:13:5): names that should return NA ────────────
  no_warn_cowc_of("democratic republic of yemen") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:79:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("netherlands antilles") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:80:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("dutch antilles") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:81:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("dutch caribbean") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:87:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("saint martin") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:88:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("st. martin") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:89:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("saint-martin") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:90:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("St-Martin / Sint Maarten") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:91:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("St-Martin / St-Maarten") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:92:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("St. Martin and St. Maarten") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:93:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("St Maarten – St Martin") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:97:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("greater antilles") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:98:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("lesser antilles") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:99:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("abc islands") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:100:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("leeward islands") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:101:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("leeward antilles") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:102:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("aruba, bonaire, and curaçao") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:103:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("sss islands") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:104:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("windward islands") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:105:5): the Netherlands Antilles are all matched correctly ──
  no_warn_iso3c_of("sint maarten, saba, and sint eustatius") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:136:5): Micronesia is not Federated States of Micronesia ──
  no_warn_iso3c_of("Micronesia") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  ── Failure (test-regex-special.R:144:5): Northern Ireland is not Ireland ───────
  no_warn_iso3c_of("Northern Ireland") not equal to NA_character_.
  Modes: list, character
  Component 1: target is NULL, current is character
  
  [ FAIL 28 | WARN 2 | SKIP 0 | PASS 3339 ]
  Error: Test failures
  Execution halted