Running ‘testthat.R’ [12s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(countries)
  > 
  > test_check("countries")
  
  In total 1 unique country names were provided
  1/1 have been matched with EXACT matching
  0/1 have been matched with FUZZY matching
  
  
  The following country IDs do not have a match in one or more of the naming conventions:
    - Taiwan
  
  All values in argument - x - are NA
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  countries detected in column names, pivoting columns: France, Italy, US
  No column was pivoted
  No column was pivoted
  No column was pivoted
  year detected in column names, pivoting columns: France1992, France1993, France1994
  year detected in column names, pivoting columns: France1992, France1993, France1994
  year detected in column names, pivoting columns: France1992, France1993, France1994
  year detected in column names, pivoting columns: France1992, France1993, France1994
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 124 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_function_output.R:188:3'): output from auto_merge is as expected ──
  Error in `auto_merge(example, example3, merging_info = T)`: Function argument - by - is invalid. It needs to be either a vector of regular expressions, or a list of column names. Refer to the documentation for more information.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_function_output.R:188:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─countries::auto_merge(example, example3, merging_info = T)
  ── Error ('test_function_output.R:239:3'): output from list_fields() are as expected ──
  Error in `country_info()`: Function argument - countries - needs to be a vector of country names
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(length(list_fields()) > 0, TRUE) at test_function_output.R:239:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─countries::list_fields()
   5.   └─countries::country_info()
  ── Error ('test_function_output.R:253:3'): output from country_info() are as expected ──
  Error in `country_info(fields = "capital")`: Function argument - countries - needs to be a vector of country names
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_function_output.R:253:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(country_info(fields = "capital"))
   5. └─countries::country_info(fields = "capital")
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 124 ]
  Error: Test failures
  Execution halted