Running ‘testthat.R’ [22s/469s]
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: /home/hornik/tmp/scratch/RtmpMLsOiY/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'
  ── 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.
  1: get_tb_burden(download_data = TRUE, save = TRUE) at testthat/test-get_tb_burden.R:4
  2: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_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'
  ── 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.
  1: map_tb_burden(download_data = TRUE, save = TRUE) at testthat/test-map_tb_burden.R:6
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(trans = "log") at testthat/test-map_tb_burden.R:16
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(annual_change = TRUE) at testthat/test-map_tb_burden.R:26
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(annual_change = TRUE, year = NULL) at testthat/test-map_tb_burden.R:36
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(fill_var_type = "continuous") at testthat/test-map_tb_burden.R:47
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(metric_label = test_label) at testthat/test-map_tb_burden.R:59
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(interactive = TRUE) at testthat/test-map_tb_burden.R:69
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: map_tb_burden(metric = "g_whoregion", metric_label = "WHO world region") at testthat/test-map_tb_burden.R:83
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         download_data = download_data, trans = trans, annual_change = annual_change, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 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.
  1: plot_tb_burden(download_data = TRUE, save = TRUE) at testthat/test-plot_tb_burden.R:4
  2: prepare_df_plot(df = df, dict = dict, metric = metric, conf = conf, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         trans = trans, annual_change = annual_change, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 14. 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.
  1: plot_tb_burden(trans = "log10") at testthat/test-plot_tb_burden.R:13
  2: prepare_df_plot(df = df, dict = dict, metric = metric, conf = conf, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         trans = trans, annual_change = annual_change, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 15. 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.
  1: plot_tb_burden(annual_change = TRUE) at testthat/test-plot_tb_burden.R:22
  2: prepare_df_plot(df = df, dict = dict, metric = metric, conf = conf, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         trans = trans, annual_change = annual_change, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 16. 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.
  1: plot_tb_burden(interactive = TRUE) at testthat/test-plot_tb_burden.R:31
  2: prepare_df_plot(df = df, dict = dict, metric = metric, conf = conf, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         trans = trans, annual_change = annual_change, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 17. 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.
  1: plot_tb_burden_overview(download_data = TRUE, save = TRUE) at testthat/test-plot_tb_burden_overview.R:5
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         annual_change = annual_change, trans = trans, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 18. 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.
  1: plot_tb_burden_overview(trans = "log10") at testthat/test-plot_tb_burden_overview.R:15
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         annual_change = annual_change, trans = trans, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 19. 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.
  1: plot_tb_burden_overview(annual_change = TRUE) at testthat/test-plot_tb_burden_overview.R:25
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         annual_change = annual_change, trans = trans, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 20. 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.
  1: plot_tb_burden_overview(interactive = TRUE) at testthat/test-plot_tb_burden_overview.R:33
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         countries = countries, compare_to_region = compare_to_region, facet = facet, 
         annual_change = annual_change, trans = trans, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 21. Error: (unknown) (@test-prepare_df_plot.R#4)  ───────────────────────────
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: prepare_df_plot(download_data = TRUE, save = TRUE) at testthat/test-prepare_df_plot.R:4
  2: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  3: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  4: 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=dictionary'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=dictionary'
  trying URL 'https://extranet.who.int/tme/generateCSV.asp?ds=dictionary'
  ── 22. Error: (unknown) (@test-search_data_dict.R#7)  ──────────────────────────
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: search_data_dict(var = "country", download_data = TRUE, save = TRUE) at testthat/test-search_data_dict.R:7
  2: get_data_dict(download_data = download_data, save = save, dict_save_name = dict_save_name, 
         verbose = verbose, ...)
  3: get_data(url = url, download_data = download_data, save = save, save_name = dict_save_name, 
         return = return, verbose = verbose, use_utils = use_utils)
  4: 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'
  ── 23. Error: summarise_tb_burden can summarise a variable
            without con
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = test_countries, years = test_year, 
         conf = NULL) at testthat/test-summarise_tb_burden.R:9
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 24. Error: summarise_tb_burden can summarise a variable
            without con
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = test_countries, compare_to_region = TRUE, 
         years = test_year + 1, conf = NULL) at testthat/test-summarise_tb_burden.R:20
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 25. Error: summarise_tb_burden can summarise a variable
            across to a
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = NULL, compare_all_regions = TRUE, 
         years = test_year + 2, conf = NULL) at testthat/test-summarise_tb_burden.R:32
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries_region, compare_to_region = TRUE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 26. Error: summarise_tb_burden can summarise a variable
            for a custo
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = NULL, custom_compare = list(low = c("Germany", 
         "Spain"), hi = c("Nigeria", "India")), years = test_year + 3, conf = NULL) at testthat/test-summarise_tb_burden.R:44
  2: suppressWarnings(map2_dfr(custom_compare, names(custom_compare), ~prepare_df_plot(df = df, 
         dict = dict, metric = metric, metric_label = metric_label, conf = conf, countries = .x, 
         compare_to_region = FALSE, annual_change = annual_change, download_data = download_data, 
         save = save, burden_save_name = burden_save_name, dict_save_name = dict_save_name, 
         verbose = verbose)$df %>% mutate(Area = .y)))
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: map2_dfr(custom_compare, names(custom_compare), ~prepare_df_plot(df = df, dict = dict, 
         metric = metric, metric_label = metric_label, conf = conf, countries = .x, compare_to_region = FALSE, 
         annual_change = annual_change, download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)$df %>% mutate(Area = .y))
  5: map2(.x, .y, .f, ...)
  6: .f(.x[[i]], .y[[i]], ...)
  7: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = .x, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)$df %>% mutate(Area = .y)
  8: eval(lhs, parent, parent)
  9: eval(lhs, parent, parent)
  10: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = .x, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  11: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  12: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  13: 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'
  ── 27. Error: summarise_tb_burden can summarise a variable
            globally (@
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = NULL, compare_to_world = TRUE, 
         years = test_year + 4, conf = NULL) at testthat/test-summarise_tb_burden.R:73
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = NULL, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 28. Error: summarise_tb_burden can summarise a variable
            for all reg
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = NULL, compare_all_regions = TRUE, 
         compare_to_world = TRUE, truncate_at_zero = FALSE, years = test_year + 4, conf = NULL) at testthat/test-summarise_tb_burden.R:85
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries_region, compare_to_region = TRUE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 29. Error: summarise_tb_burden can summarise a variable
            with confid
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", samples = 1000, countries = NULL, compare_all_regions = TRUE, 
         compare_to_world = TRUE, years = test_year + 4) at testthat/test-summarise_tb_burden.R:100
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries_region, compare_to_region = TRUE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 30. Error: summarise_tb_burden can summarise a variable
            with confid
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", samples = 1000, countries = test_countries, 
         compare_all_regions = TRUE, compare_to_world = TRUE, years = test_year + 4) at testthat/test-summarise_tb_burden.R:116
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries, compare_to_region = FALSE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: 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'
  ── 31. Error: summarise_tb_burden can summarise a variable using the median (@te
  Data downloading has failed, check your internet connection.
             If this issue is not resolved, contact the package author.
  1: summarise_tb_burden(metric = "e_inc_num", countries = NULL, stat = "median", conf = NULL, 
         compare_all_regions = TRUE, compare_to_world = TRUE, years = test_year + 4) at testthat/test-summarise_tb_burden.R:130
  2: prepare_df_plot(df = df, dict = dict, metric = metric, metric_label = metric_label, 
         conf = conf, countries = countries_region, compare_to_region = TRUE, annual_change = annual_change, 
         download_data = download_data, save = save, burden_save_name = burden_save_name, 
         dict_save_name = dict_save_name, verbose = verbose)
  3: get_tb_burden(download_data = download_data, save = save, burden_save_name = burden_save_name, 
         verbose = verbose, ...)
  4: get_data(url = url, download_data = download_data, data_trans_fn = trans_burden_data, 
         save = save, save_name = burden_save_name, return = return, verbose = verbose, 
         use_utils = use_utils)
  5: stop("Data downloading has failed, check your internet connection.\n           If this issue is not resolved, contact the package author.")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 264 SKIPPED: 2 FAILED: 31
  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