Running 'spelling.R' [0s/1s]
  Running 'testthat.R' [16s/157s]
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.
  Backtrace:
   1. getTBinR::get_data(...)
  
  -- 2. Error: get_data saves a local copy of the data which can then be successfu
  Data not found locally at: /tmp/Rtmp6hlY5J/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.
  Backtrace:
   1. getTBinR::get_data(save_name = "test_data", download_data = FALSE)
  
  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.
  Backtrace:
   1. getTBinR::get_data_dict(download_data = TRUE, save = TRUE)
   2. getTBinR::get_data(...)
  
  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'
  -- 4. Error: (unknown) (@test-get_tb_burden.R#4)  ------------------------------
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::get_tb_burden(download_data = TRUE, save = TRUE)
   2. getTBinR::get_data(...)
  
  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'
  -- 5. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)  ----------
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(download_data = TRUE, save = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 6. Error: map_tb_burden produces a plot when a log transform is used (@test-m
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. base::suppressWarnings(map_tb_burden(trans = "log"))
   3. getTBinR::map_tb_burden(trans = "log")
   4. getTBinR::prepare_df_plot(...)
   5. getTBinR::get_tb_burden(...)
   6. getTBinR::get_data(...)
  
  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'
  -- 7. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burd
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(annual_change = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 8. Error: map_tb_burden produces when no year is specified (@test-map_tb_burd
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(annual_change = TRUE, year = NULL)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 9. Error: map_tb_burden produces a map when fill type is 
            manually 
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(fill_var_type = "continuous")
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 10. Error: map_tb_burden can have a custom legend specified. (@test-map_tb_bu
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(metric_label = test_label)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 11. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(interactive = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 12. Error: map_tb_burden produces a plot when a discrete metric is specified 
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::map_tb_burden(metric = "g_whoregion", metric_label = "WHO world region")
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 13. Error: plot_tb_burden produces a plot (@test-plot_tb_burden.R#4)  -------
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden(download_data = TRUE, save = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 14. Error: plot_tb_burden produces a plot with smoothed data (@test-plot_tb_b
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. base::suppressWarnings(...)
   3. getTBinR::plot_tb_burden(download_data = TRUE, save = TRUE, smooth = TRUE)
   4. getTBinR::prepare_df_plot(...)
   5. getTBinR::get_tb_burden(...)
   6. getTBinR::get_data(...)
  
  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'
  -- 15. Error: plot_tb_burden produces a plot with a log10 transform (@test-plot_
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden(trans = "log10")
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 16. Error: plot_tb_burden produces a plot with the annual_change option (@tes
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden(annual_change = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 17. Error: plot_tb_burden produces an interactive plot (@test-plot_tb_burden.
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden(interactive = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 18. Error: plot_tb_burden_overview produces a plot (@test-plot_tb_burden_over
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden_overview(...)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  -- 19. Error: plot_tb_burden_overview produces a plot with a log10 transform (@t
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. base::suppressWarnings(plot_tb_burden_overview(trans = "log10"))
   3. getTBinR::plot_tb_burden_overview(trans = "log10")
   4. getTBinR::prepare_df_plot(...)
   5. getTBinR::get_tb_burden(...)
   6. getTBinR::get_data(...)
  
  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'
  -- 20. Error: plot_tb_burden_overview produces a plot when the annual_change opt
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. base::suppressWarnings(plot_tb_burden_overview(annual_change = TRUE))
   3. getTBinR::plot_tb_burden_overview(annual_change = TRUE)
   4. getTBinR::prepare_df_plot(...)
   5. getTBinR::get_tb_burden(...)
   6. getTBinR::get_data(...)
  
  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'
  -- 21. Error: plot_tb_burden_overview produces an interactive plot (@test-plot_t
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden_overview(interactive = TRUE)
   2. getTBinR::prepare_df_plot(...)
   3. getTBinR::get_tb_burden(...)
   4. getTBinR::get_data(...)
  
  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'
  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'
  -- 22. Error: plot_tb_burden_summary produces a plot (@test-plot_tb_burden_summa
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  Backtrace:
   1. getTBinR::plot_tb_burden_summary()
   5. getTBinR::summarise_tb_burden(...)
   6. getTBinR::prepare_df_plot(...)
   7. getTBinR::get_tb_burden(...)
   8. getTBinR::get_data(...)
  
  == testthat results  ===========================================================
  [ OK: 48 | SKIPPED: 30 | WARNINGS: 162 | FAILED: 22 ]
  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) 
  4. Error: (unknown) (@test-get_tb_burden.R#4) 
  5. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6) 
  6. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#16) 
  7. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#26) 
  8. Error: map_tb_burden produces when no year is specified (@test-map_tb_burden.R#36) 
  9. Error: map_tb_burden produces a map when fill type is 
            manually specified and fails when it is misspecifed (@test-map_tb_burden.R#47) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted