Running 'testthat.R' [16m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(getTBinR)
  > 
  > test_check("getTBinR")
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  -- 1. Error: get_data retrieves the specified data when download_data is TRUE (@
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: get_data(url = url, save_name = "test_data", save = TRUE, download_data = TRUE) at testthat/test-get_data.R:12
  2: stop("Data downloading has failed, check your internet connection.\n           If this issue is not resolved, contact the package author.")
  
  -- 2. Error: get_data saves a local copy of the data which can then be successfu
  Data not found locally at: D:\temp\RtmpiOAnY8/test_data.rdsPermission to download has 
  not been given. 
  If the data exists locally, check the path and save_name.
  If it does not exist locally then change download_data to TRUE to download the data.
  Set save to TRUE to save the data for local use.
  1: get_data(save_name = "test_data", download_data = FALSE) at testthat/test-get_data.R:22
  2: stop("Data not found locally at: ", data_path, "Permission to download has \nnot been given. \nIf the data exists locally, check the path and save_name.\nIf it does not exist locally then change download_data to TRUE to download the data.\nSet save to TRUE to save the data for local use.")
  
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=dictionary'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=dictionary'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=dictionary'
  -- 3. Error: (unknown) (@test-get_data_dict.R#4)  ------------------------------
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: get_data_dict(download_data = TRUE, save = TRUE) at testthat/test-get_data_dict.R:4
  2: get_data(url = url, download_data = download_data, save = save, save_name = dict_save_name, 
         return = return, verbose = verbose, use_utils = use_utils)
  3: stop("Data downloading has failed, check your internet connection.\n           If this issue is not resolved, contact the package author.")
  
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates'
  Content type 'text/csv; charset=utf-8; Charset=utf-8' length unknown
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... .......... .......... .......... ..........
  .......... 
  downloaded 710 KB
  
  == testthat results  ===========================================================
  OK: 108 SKIPPED: 36 FAILED: 3
  1. Error: get_data retrieves the specified data when download_data is TRUE (@test-get_data.R#12) 
  2. Error: get_data saves a local copy of the data which can then be successfully retrieved (@test-get_data.R#22) 
  3. Error: (unknown) (@test-get_data_dict.R#4) 
  
  Error: testthat unit tests failed
  Execution halted