Running ‘testthat.R’ [28s/54s]
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 or NULL
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  The following columns are being merged:
  
  =======  ====
  \        freq
  =======  ====
  Table 1  freq
  Table 2  freq
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  Data type for variable HS differ across tables - converting to character
  Data type for variable freq differ across tables - converting to character
  The following columns are being merged:
  
  =======  ===  ====
  \        HS   freq
  =======  ===  ====
  Table 1  HS   freq
  Table 2  HS       
  Table 3  HS   freq
  =======  ===  ====
  
                                                
  Performing merge: 1/2 
                                                
  Performing merge: 2/2 
                                                
  Merge complete
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  Data type for variable HS differ across tables - converting to character
  Data type for variable freq differ across tables - converting to character
  The following columns are being merged:
  
  =======  ===  ====
  \        HS   freq
  =======  ===  ====
  Table 1  HS   freq
  Table 2  HS       
  Table 3  HS   freq
  =======  ===  ====
  
                                                
  Performing merge: 1/2 
                                                
  Performing merge: 2/2 
                                                
  Merge complete
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  Data type for variable HS differ across tables - converting to character
  The following columns are being merged:
  
  =======  ===
  \        HS 
  =======  ===
  Table 1  HS 
  Table 2  HS 
  =======  ===
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  No merging keys were found. Will try merging all columns with matching names!
  Data type for variable HS differ across tables - converting to character
  The following columns are being merged:
  
  =======  ===
  \        HS 
  =======  ===
  Table 1  HS 
  Table 2  HS 
  =======  ===
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 1 - countries detected in column names, pivoting columns: France, Italy, US
  Table 2 - years detected in column names, pivoting columns: France1992, France1993, France1994
  Converting country names
  Checking time columns
  The following columns are being merged:
  
  =======  =======================  =====================
  \        country                  time                 
  =======  =======================  =====================
  Table 1  Table1_pivoted_colnames                       
  Table 2                           year_pivoted_colnames
  =======  =======================  =====================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  Identifying columns to merge
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  No merging key found for Table 1. Data will be appended. 
  The following columns are being merged:
  
  =======  =======================
  \        country                
  =======  =======================
  Table 1                         
  Table 2  Table2_pivoted_colnames
  =======  =======================
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Table 1 - countries detected in column names, pivoting columns: Japan, Norway, Germany, US
  Table 2 - countries detected in column names, pivoting columns: France, Italy, US
  Converting country names
  Checking time columns
  The following columns are being merged:
  
  =======  =======================  ====
  \        country                  time
  =======  =======================  ====
  Table 1  Table1_pivoted_colnames  Date
  Table 2  Table2_pivoted_colnames      
  =======  =======================  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Checking time columns
  No merging key found for Table 2. Data will be appended. 
  The following columns are being merged:
  
  =======  ====
  \        time
  =======  ====
  Table 1  Date
  Table 2      
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  (Set merging_info to TRUE to save merging details)
  Identifying columns to merge
  Checking time columns
  No merging key found for Table 2. Data will be appended. 
  The following columns are being merged:
  
  =======  ====
  \        time
  =======  ====
  Table 1  Date
  Table 2      
  =======  ====
  
                                                
  Performing merge: 1/1 
                                                
  Merge complete
  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 2 | WARN 0 | SKIP 0 | PASS 143 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_function_output.R:239:3'): output from list_fields() are as expected ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [restcountries.com] SSL connection timeout
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(length(list_fields()) > 0, TRUE) at test_function_output.R:239:3
    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()
    6.     └─httr::GET(url = query)
    7.       └─httr:::request_perform(req, hu$handle$handle)
    8.         ├─httr:::request_fetch(req$output, req$url, handle)
    9.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test_function_output.R:246:3'): output from country_info() are as expected ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [restcountries.com] Failed to connect to restcountries.com port 443 after 10000 ms: Timeout was reached
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test_function_output.R:246:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::is.data.frame(country_info("USA", "capital"))
    5. └─countries::country_info("USA", "capital")
    6.   └─httr::GET(url = query)
    7.     └─httr:::request_perform(req, hu$handle$handle)
    8.       ├─httr:::request_fetch(req$output, req$url, handle)
    9.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.         └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 143 ]
  Error: Test failures
  Execution halted