CRAN Package Check Results for Package getTBinR

Last updated on 2018-02-24 04:48:33 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.2 3.52 66.19 69.71 ERROR
r-devel-linux-x86_64-debian-gcc 0.5.2 2.14 53.34 55.48 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.2 62.38 ERROR
r-devel-linux-x86_64-fedora-gcc 0.5.2 82.83 ERROR
r-devel-windows-ix86+x86_64 0.5.2 13.00 155.00 168.00 OK
r-patched-linux-x86_64 0.5.2 2.87 68.67 71.54 ERROR
r-patched-solaris-x86 0.5.2 151.90 ERROR
r-release-linux-x86_64 0.5.2 2.89 69.37 72.26 ERROR
r-release-windows-ix86+x86_64 0.5.2 11.00 193.00 204.00 OK
r-release-osx-x86_64 0.5.2 ERROR
r-oldrel-windows-ix86+x86_64 0.5.2 7.00 129.00 136.00 OK
r-oldrel-osx-x86_64 0.5.0 OK

Check Details

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘getTBinR-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: get_data
    > ### Title: Generic Get Data Function
    > ### Aliases: get_data
    >
    > ### ** Examples
    >
    >
    > tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
    + save_name = "TB_burden")
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 498 0 498 0 0 323 0 --:--:-- 0:00:01 --:--:-- 323
    100 272k 0 272k 0 0 165k 0 --:--:-- 0:00:01 --:--:-- 165k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 1 tries.
    Attempting data download in 1.7 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 2 tries.
    Attempting data download in 2.2 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 3 tries.
    Attempting data download in 3.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 4 tries.
    Attempting data download in 4.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 5 tries.
    Attempting data download in 1.4 seconds.
    Error in get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates", :
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [22s/391s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 158k 0 158k 0 0 120k 0 --:--:-- 0:00:01 --:--:-- 119k
     100 272k 0 272k 0 0 206k 0 --:--:-- 0:00:01 --:--:-- 206k
     ── 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: /tmp/RtmpFJEGU7/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.")
    
     ── 3. Error: get_data can download data using utils alternative (@test-get_data.
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
     1: get_data(url = url, download_data = TRUE, use_utils = TRUE) at testthat/test-get_data.R:28
     2: stop("Data downloading has failed, check your internet connection.\n If this issue is not resolved, contact the package author.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 27236 0 --:--:-- --:--:-- --:--:-- 27236
     ── 4. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1629 0 --:--:-- 0:00:01 --:--:-- 1629
     100 272k 0 272k 0 0 208k 0 --:--:-- 0:00:01 --:--:-- 208k
     ── 5. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 464 0 --:--:-- 0:00:01 --:--:-- 464
     100 272k 0 272k 0 0 237k 0 --:--:-- 0:00:01 --:--:-- 237k
     ── 6. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 170k 0 170k 0 0 128k 0 --:--:-- 0:00:01 --:--:-- 128k
     100 272k 0 272k 0 0 206k 0 --:--:-- 0:00:01 --:--:-- 206k
     ── 7. 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:14
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 3411 0 3411 0 0 2900 0 --:--:-- 0:00:01 --:--:-- 2902
     100 272k 0 272k 0 0 217k 0 --:--:-- 0:00:01 --:--:-- 218k
     ── 8. 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:22
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 254k 0 --:--:-- 0:00:01 --:--:-- 254k
     ── 9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#3
     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:31
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1700 0 --:--:-- 0:00:01 --:--:-- 1700
     100 272k 0 272k 0 0 223k 0 --:--:-- 0:00:01 --:--:-- 223k
     ── 10. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1962 0 --:--:-- --:--:-- --:--:-- 1960
     100 272k 0 272k 0 0 259k 0 --:--:-- 0:00:01 --:--:-- 259k
     ── 11. 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:11
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 449 0 --:--:-- 0:00:01 --:--:-- 449
     100 272k 0 272k 0 0 226k 0 --:--:-- 0:00:01 --:--:-- 226k
     ── 12. 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:18
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 209k 0 --:--:-- 0:00:01 --:--:-- 209k
     ── 13. 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:25
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 218 0 --:--:-- --:--:-- --:--:-- 218
     100 272k 0 272k 0 0 222k 0 --:--:-- 0:00:01 --:--:-- 222k
     ── 14. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1563 0 --:--:-- 0:00:01 --:--:-- 1562
     100 272k 0 272k 0 0 203k 0 --:--:-- 0:00:01 --:--:-- 203k
     ── 15. 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:13
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1567 0 --:--:-- 0:00:01 --:--:-- 1565
     100 272k 0 272k 0 0 203k 0 --:--:-- 0:00:01 --:--:-- 203k
     ── 16. 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:21
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1732 0 --:--:-- 0:00:01 --:--:-- 1732
     100 272k 0 272k 0 0 227k 0 --:--:-- 0:00:01 --:--:-- 227k
     ── 17. 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:29
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 477 0 --:--:-- 0:00:01 --:--:-- 478
     100 272k 0 272k 0 0 235k 0 --:--:-- 0:00:01 --:--:-- 235k
     ── 18. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 26147 0 --:--:-- --:--:-- --:--:-- 26147
     ── 19. Error: (unknown) (@test-search_data_dict.R#5) ──────────────────────────
     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:5
     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.")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 93 SKIPPED: 0 FAILED: 19
     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: get_data can download data using utils alternative (@test-get_data.R#28)
     4. Error: (unknown) (@test-get_data_dict.R#4)
     5. Error: (unknown) (@test-get_tb_burden.R#4)
     6. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)
     7. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#14)
     8. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#22)
     9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#31)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.2
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    ── Attaching packages ────────────────────────────────── tidyverse 1.2.1 ──
    ✔ ggplot2 2.2.1 ✔ purrr 0.2.4
    ✔ tibble 1.4.2 ✔ dplyr 0.7.4
    ✔ tidyr 0.8.0 ✔ stringr 1.3.0
    ✔ readr 1.1.1 ✔ forcats 0.3.0
    ── Conflicts ───────────────────────────────────── tidyverse_conflicts() ──
    ✖ dplyr::filter() masks stats::filter()
    ✖ dplyr::lag() masks stats::lag()
    Loading required package: viridisLite
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 116 0 116 0 0 183 0 --:--:-- --:--:-- --:--:-- 182
    100 498 0 498 0 0 303 0 --:--:-- 0:00:01 --:--:-- 303
    100 272k 0 272k 0 0 127k 0 --:--:-- 0:00:02 --:--:-- 127k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 1 tries.
    Attempting data download in 0.8 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 2 tries.
    Attempting data download in 2.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 3 tries.
    Attempting data download in 1.4 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 4 tries.
    Attempting data download in 1.5 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 5 tries.
    Attempting data download in 4.4 seconds.
    Quitting from lines 34-36 (case_study_global_trends.Rmd)
    Error: processing vignette ‘case_study_global_trends.Rmd’ failed with diagnostics:
    Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘getTBinR-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: get_data
    > ### Title: Generic Get Data Function
    > ### Aliases: get_data
    >
    > ### ** Examples
    >
    >
    > tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
    + save_name = "TB_burden")
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 498 0 498 0 0 406 0 --:--:-- 0:00:01 --:--:-- 406
    100 272k 0 272k 0 0 193k 0 --:--:-- 0:00:01 --:--:-- 193k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 1 tries.
    Attempting data download in 1.7 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 2 tries.
    Attempting data download in 2.2 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 3 tries.
    Attempting data download in 3.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 4 tries.
    Attempting data download in 4.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 5 tries.
    Attempting data download in 1.4 seconds.
    Error in get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates", :
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [18s/378s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 402 0 --:--:-- 0:00:01 --:--:-- 401
     100 272k 0 272k 0 0 204k 0 --:--:-- 0:00:01 --:--:-- 204k
     ── 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: /tmp/RtmpSbF3Sj/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.")
    
     ── 3. Error: get_data can download data using utils alternative (@test-get_data.
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
     1: get_data(url = url, download_data = TRUE, use_utils = TRUE) at testthat/test-get_data.R:28
     2: stop("Data downloading has failed, check your internet connection.\n If this issue is not resolved, contact the package author.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 29133 0 --:--:-- --:--:-- --:--:-- 29133
     ── 4. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 261 0 --:--:-- --:--:-- --:--:-- 261
     100 272k 0 272k 0 0 225k 0 --:--:-- 0:00:01 --:--:-- 225k
     ── 5. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 244k 0 --:--:-- 0:00:01 --:--:-- 244k
     ── 6. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 290 0 --:--:-- --:--:-- --:--:-- 289
     100 272k 0 272k 0 0 247k 0 --:--:-- 0:00:01 --:--:-- 247k
     ── 7. 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:14
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 428 0 --:--:-- 0:00:01 --:--:-- 428
     100 272k 0 272k 0 0 216k 0 --:--:-- 0:00:01 --:--:-- 216k
     ── 8. 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:22
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1831 0 --:--:-- 0:00:01 --:--:-- 1833
     100 272k 0 272k 0 0 239k 0 --:--:-- 0:00:01 --:--:-- 239k
     ── 9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#3
     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:31
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 158k 0 158k 0 0 134k 0 --:--:-- 0:00:01 --:--:-- 134k
     100 272k 0 272k 0 0 231k 0 --:--:-- 0:00:01 --:--:-- 231k
     ── 10. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 432 0 --:--:-- 0:00:01 --:--:-- 432
     100 272k 0 272k 0 0 226k 0 --:--:-- 0:00:01 --:--:-- 225k
     ── 11. 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:11
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 492 0 --:--:-- 0:00:01 --:--:-- 492
     100 272k 0 272k 0 0 251k 0 --:--:-- 0:00:01 --:--:-- 251k
     ── 12. 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:18
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 303 0 --:--:-- --:--:-- --:--:-- 303
     100 272k 0 272k 0 0 261k 0 --:--:-- 0:00:01 --:--:-- 261k
     ── 13. 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:25
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 257k 0 --:--:-- 0:00:01 --:--:-- 257k
     ── 14. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 439 0 --:--:-- 0:00:01 --:--:-- 439
     100 272k 0 272k 0 0 226k 0 --:--:-- 0:00:01 --:--:-- 226k
     ── 15. 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:13
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1874 0 --:--:-- 0:00:01 --:--:-- 1874
     100 272k 0 272k 0 0 244k 0 --:--:-- 0:00:01 --:--:-- 244k
     ── 16. 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:21
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 160k 0 160k 0 0 133k 0 --:--:-- 0:00:01 --:--:-- 133k
     100 272k 0 272k 0 0 226k 0 --:--:-- 0:00:01 --:--:-- 225k
     ── 17. 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:29
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 449 0 --:--:-- 0:00:01 --:--:-- 449
     100 272k 0 272k 0 0 230k 0 --:--:-- 0:00:01 --:--:-- 230k
     ── 18. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 32380 0 --:--:-- --:--:-- --:--:-- 32481
     ── 19. Error: (unknown) (@test-search_data_dict.R#5) ──────────────────────────
     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:5
     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.")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 93 SKIPPED: 0 FAILED: 19
     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: get_data can download data using utils alternative (@test-get_data.R#28)
     4. Error: (unknown) (@test-get_data_dict.R#4)
     5. Error: (unknown) (@test-get_tb_burden.R#4)
     6. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)
     7. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#14)
     8. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#22)
     9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#31)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    ── Attaching packages ────────────────────────────────── tidyverse 1.2.1 ──
    ✔ ggplot2 2.2.1 ✔ purrr 0.2.4
    ✔ tibble 1.4.2 ✔ dplyr 0.7.4
    ✔ tidyr 0.8.0 ✔ stringr 1.3.0
    ✔ readr 1.1.1 ✔ forcats 0.3.0
    ── Conflicts ───────────────────────────────────── tidyverse_conflicts() ──
    ✖ dplyr::filter() masks stats::filter()
    ✖ dplyr::lag() masks stats::lag()
    Loading required package: viridisLite
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 498 0 498 0 0 500 0 --:--:-- --:--:-- --:--:-- 500
    100 272k 0 272k 0 0 253k 0 --:--:-- 0:00:01 --:--:-- 253k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 1 tries.
    Attempting data download in 1.9 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 2 tries.
    Attempting data download in 1.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 3 tries.
    Attempting data download in 0.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 4 tries.
    Attempting data download in 1.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 5 tries.
    Attempting data download in 3.4 seconds.
    Quitting from lines 34-36 (case_study_global_trends.Rmd)
    Error: processing vignette ‘case_study_global_trends.Rmd’ failed with diagnostics:
    Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [9s/24s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 2108 0 --:--:-- --:--:-- --:--:-- 2106
     100 272k 0 272k 0 0 200k 0 --:--:-- 0:00:01 --:--:-- 200k
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     100 10459 0 10459 0 0 8851 0 --:--:-- 0:00:01 --:--:-- 8856
     ── 1. Failure: Data dictionary has the expected number of entries (@test-get_dat
     `exp_nrows` not equal to `nrows_dict`.
     1/1 mismatches
     [1] 396 - 402 == -6
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     100 15791 0 15791 0 0 7878 0 --:--:-- 0:00:02 --:--:-- 7879
     100 272k 0 272k 0 0 114k 0 --:--:-- 0:00:02 --:--:-- 114k
     ── 2. Failure: Definition search for an unknown variable returns expected result
     6 not equal to nrow(test_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 3. Failure: Definition search for an unknown variable returns expected result
     `exp_def` not equal to test_def$variable_name.
     Lengths differ: 6 is not 9
    
     ── 4. Failure: Combined variable and definition search returns expected results
     6 not equal to nrow(test_var_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 5. Failure: Combined variable and definition search returns expected results
     `exp_def` not equal to test_var_def$variable_name.
     Lengths differ: 6 is not 9
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 73 SKIPPED: 0 FAILED: 5
     1. Failure: Data dictionary has the expected number of entries (@test-get_data_dict.R#27)
     2. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#31)
     3. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#33)
     4. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#39)
     5. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#41)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [10s/23s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 9251 0 9251 0 0 8716 0 --:--:-- 0:00:01 --:--:-- 8710
     100 272k 0 272k 0 0 185k 0 --:--:-- 0:00:01 --:--:-- 185k
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     100 10459 0 10459 0 0 8828 0 --:--:-- 0:00:01 --:--:-- 8826
     ── 1. Failure: Data dictionary has the expected number of entries (@test-get_dat
     `exp_nrows` not equal to `nrows_dict`.
     1/1 mismatches
     [1] 396 - 402 == -6
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     100 498 0 498 0 0 279 0 --:--:-- 0:00:01 --:--:-- 279
     100 272k 0 272k 0 0 121k 0 --:--:-- 0:00:02 --:--:-- 121k
     ── 2. Failure: Definition search for an unknown variable returns expected result
     6 not equal to nrow(test_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 3. Failure: Definition search for an unknown variable returns expected result
     `exp_def` not equal to test_def$variable_name.
     Lengths differ: 6 is not 9
    
     ── 4. Failure: Combined variable and definition search returns expected results
     6 not equal to nrow(test_var_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 5. Failure: Combined variable and definition search returns expected results
     `exp_def` not equal to test_var_def$variable_name.
     Lengths differ: 6 is not 9
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 73 SKIPPED: 0 FAILED: 5
     1. Failure: Data dictionary has the expected number of entries (@test-get_data_dict.R#27)
     2. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#31)
     3. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#33)
     4. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#39)
     5. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#41)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘getTBinR-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: get_data
    > ### Title: Generic Get Data Function
    > ### Aliases: get_data
    >
    > ### ** Examples
    >
    >
    > tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
    + save_name = "TB_burden")
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 6331 0 6331 0 0 5462 0 --:--:-- 0:00:01 --:--:-- 5462
    100 272k 0 272k 0 0 202k 0 --:--:-- 0:00:01 --:--:-- 202k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 1 tries.
    Attempting data download in 1.7 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 2 tries.
    Attempting data download in 2.2 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 3 tries.
    Attempting data download in 3.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 4 tries.
    Attempting data download in 4.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 5 tries.
    Attempting data download in 1.4 seconds.
    Error in get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates", :
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [24s/392s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1711 0 --:--:-- 0:00:01 --:--:-- 1711
     100 272k 0 272k 0 0 220k 0 --:--:-- 0:00:01 --:--:-- 220k
     ── 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: /tmp/Rtmps8Wj2u/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.")
    
     ── 3. Error: get_data can download data using utils alternative (@test-get_data.
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
     1: get_data(url = url, download_data = TRUE, use_utils = TRUE) at testthat/test-get_data.R:28
     2: stop("Data downloading has failed, check your internet connection.\n If this issue is not resolved, contact the package author.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 122 0 122 0 0 311 0 --:--:-- --:--:-- --:--:-- 310
     100 10459 0 10459 0 0 26478 0 --:--:-- --:--:-- --:--:-- 26411
     ── 4. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1729 0 --:--:-- 0:00:01 --:--:-- 1728
     100 272k 0 272k 0 0 215k 0 --:--:-- 0:00:01 --:--:-- 215k
     ── 5. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1877 0 --:--:-- 0:00:01 --:--:-- 1877
     100 272k 0 272k 0 0 248k 0 --:--:-- 0:00:01 --:--:-- 249k
     ── 6. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1751 0 --:--:-- 0:00:01 --:--:-- 1751
     100 272k 0 272k 0 0 233k 0 --:--:-- 0:00:01 --:--:-- 233k
     ── 7. 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:14
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1708 0 --:--:-- 0:00:01 --:--:-- 1708
     100 272k 0 272k 0 0 227k 0 --:--:-- 0:00:01 --:--:-- 227k
     ── 8. 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:22
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 215k 0 --:--:-- 0:00:01 --:--:-- 215k
     ── 9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#3
     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:31
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1712 0 --:--:-- 0:00:01 --:--:-- 1712
     100 272k 0 272k 0 0 224k 0 --:--:-- 0:00:01 --:--:-- 224k
     ── 10. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 6331 0 6331 0 0 4821 0 --:--:-- 0:00:01 --:--:-- 4821
     100 272k 0 272k 0 0 196k 0 --:--:-- 0:00:01 --:--:-- 196k
     ── 11. 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:11
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1590 0 --:--:-- 0:00:01 --:--:-- 1590
     100 272k 0 272k 0 0 209k 0 --:--:-- 0:00:01 --:--:-- 209k
     ── 12. 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:18
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1735 0 --:--:-- 0:00:01 --:--:-- 1735
     100 272k 0 272k 0 0 227k 0 --:--:-- 0:00:01 --:--:-- 227k
     ── 13. 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:25
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1772 0 --:--:-- 0:00:01 --:--:-- 1772
     100 272k 0 272k 0 0 235k 0 --:--:-- 0:00:01 --:--:-- 235k
     ── 14. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 212 0 --:--:-- --:--:-- --:--:-- 212
     100 272k 0 272k 0 0 209k 0 --:--:-- 0:00:01 --:--:-- 209k
     ── 15. 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:13
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1765 0 --:--:-- 0:00:01 --:--:-- 1765
     100 272k 0 272k 0 0 235k 0 --:--:-- 0:00:01 --:--:-- 235k
     ── 16. 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:21
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1677 0 --:--:-- 0:00:01 --:--:-- 1677
     100 272k 0 272k 0 0 220k 0 --:--:-- 0:00:01 --:--:-- 220k
     ── 17. 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:29
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1468 0 --:--:-- 0:00:01 --:--:-- 1466
     100 272k 0 272k 0 0 185k 0 --:--:-- 0:00:01 --:--:-- 185k
     ── 18. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 26278 0 --:--:-- --:--:-- --:--:-- 26213
     ── 19. Error: (unknown) (@test-search_data_dict.R#5) ──────────────────────────
     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:5
     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.")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 93 SKIPPED: 0 FAILED: 19
     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: get_data can download data using utils alternative (@test-get_data.R#28)
     4. Error: (unknown) (@test-get_data_dict.R#4)
     5. Error: (unknown) (@test-get_tb_burden.R#4)
     6. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)
     7. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#14)
     8. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#22)
     9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#31)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.5.2
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    ── Attaching packages ────────────────────────────────── tidyverse 1.2.1 ──
    ✔ ggplot2 2.2.1 ✔ purrr 0.2.4
    ✔ tibble 1.4.2 ✔ dplyr 0.7.4
    ✔ tidyr 0.8.0 ✔ stringr 1.3.0
    ✔ readr 1.1.1 ✔ forcats 0.3.0
    ── Conflicts ───────────────────────────────────── tidyverse_conflicts() ──
    ✖ dplyr::filter() masks stats::filter()
    ✖ dplyr::lag() masks stats::lag()
    Loading required package: viridisLite
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 1951 0 1951 0 0 1725 0 --:--:-- 0:00:01 --:--:-- 1725
    100 272k 0 272k 0 0 214k 0 --:--:-- 0:00:01 --:--:-- 214k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 1 tries.
    Attempting data download in 2.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 2 tries.
    Attempting data download in 1.8 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 3 tries.
    Attempting data download in 0.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 4 tries.
    Attempting data download in 3.4 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 5 tries.
    Attempting data download in 1.3 seconds.
    Quitting from lines 34-36 (case_study_global_trends.Rmd)
    Error: processing vignette ‘case_study_global_trends.Rmd’ failed with diagnostics:
    Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [25s/67s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
     100 6331 0 6331 0 0 703 0 --:--:-- 0:00:09 --:--:-- 1121
     100 272k 0 272k 0 0 27951 0 --:--:-- 0:00:10 --:--:-- 60097
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 10459 0 --:--:-- --:--:-- --:--:-- 57784
     ── 1. Failure: Data dictionary has the expected number of entries (@test-get_dat
     `exp_nrows` not equal to `nrows_dict`.
     1/1 mismatches
     [1] 396 - 402 == -6
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1951 0 --:--:-- --:--:-- --:--:-- 2143
     100 272k 0 272k 0 0 272k 0 --:--:-- 0:00:01 --:--:-- 227k
     ── 2. Failure: Definition search for an unknown variable returns expected result
     6 not equal to nrow(test_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 3. Failure: Definition search for an unknown variable returns expected result
     `exp_def` not equal to test_def$variable_name.
     Lengths differ: 6 is not 9
    
     ── 4. Failure: Combined variable and definition search returns expected results
     6 not equal to nrow(test_var_def).
     1/1 mismatches
     [1] 6 - 9 == -3
    
     ── 5. Failure: Combined variable and definition search returns expected results
     `exp_def` not equal to test_var_def$variable_name.
     Lengths differ: 6 is not 9
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 73 SKIPPED: 0 FAILED: 5
     1. Failure: Data dictionary has the expected number of entries (@test-get_data_dict.R#27)
     2. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#31)
     3. Failure: Definition search for an unknown variable returns expected results (@test-search_data_dict.R#33)
     4. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#39)
     5. Failure: Combined variable and definition search returns expected results (@test-search_data_dict.R#41)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-solaris-x86

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘getTBinR-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: get_data
    > ### Title: Generic Get Data Function
    > ### Aliases: get_data
    >
    > ### ** Examples
    >
    >
    > tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
    + save_name = "TB_burden")
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 116 0 116 0 0 159 0 --:--:-- --:--:-- --:--:-- 159
    100 272k 0 272k 0 0 160k 0 --:--:-- 0:00:01 --:--:-- 160k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 1 tries.
    Attempting data download in 1.7 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 2 tries.
    Attempting data download in 2.2 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 3 tries.
    Attempting data download in 3.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 4 tries.
    Attempting data download in 4.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 5 tries.
    Attempting data download in 1.4 seconds.
    Error in get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates", :
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-release-linux-x86_64

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [23s/408s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(getTBinR)
     >
     > test_check("getTBinR")
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 260 0 --:--:-- --:--:-- --:--:-- 260
     100 272k 0 272k 0 0 229k 0 --:--:-- 0:00:01 --:--:-- 229k
     ── 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: /tmp/Rtmp5AE6CI/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.")
    
     ── 3. Error: get_data can download data using utils alternative (@test-get_data.
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
     1: get_data(url = url, download_data = TRUE, use_utils = TRUE) at testthat/test-get_data.R:28
     2: stop("Data downloading has failed, check your internet connection.\n If this issue is not resolved, contact the package author.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 33098 0 --:--:-- --:--:-- --:--:-- 33098
     ── 4. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 417 0 --:--:-- 0:00:01 --:--:-- 417
     100 272k 0 272k 0 0 209k 0 --:--:-- 0:00:01 --:--:-- 209k
     ── 5. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 419 0 --:--:-- 0:00:01 --:--:-- 419
     100 272k 0 272k 0 0 212k 0 --:--:-- 0:00:01 --:--:-- 212k
     ── 6. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1609 0 --:--:-- 0:00:01 --:--:-- 1609
     100 272k 0 272k 0 0 215k 0 --:--:-- 0:00:01 --:--:-- 215k
     ── 7. 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:14
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 243 0 --:--:-- --:--:-- --:--:-- 243
     100 272k 0 272k 0 0 240k 0 --:--:-- 0:00:01 --:--:-- 240k
     ── 8. 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:22
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 212k 0 --:--:-- 0:00:01 --:--:-- 212k
     ── 9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#3
     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:31
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 365 0 --:--:-- 0:00:01 --:--:-- 365
     100 272k 0 272k 0 0 189k 0 --:--:-- 0:00:01 --:--:-- 189k
     ── 10. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 8491 0 8491 0 0 7825 0 --:--:-- 0:00:01 --:--:-- 7825
     100 272k 0 272k 0 0 235k 0 --:--:-- 0:00:01 --:--:-- 235k
     ── 11. 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:11
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 508 0 --:--:-- --:--:-- --:--:-- 507
     100 272k 0 272k 0 0 258k 0 --:--:-- 0:00:01 --:--:-- 258k
     ── 12. 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:18
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 231k 0 --:--:-- 0:00:01 --:--:-- 231k
     ── 13. 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:25
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 498 0 498 0 0 479 0 --:--:-- 0:00:01 --:--:-- 479
     100 272k 0 272k 0 0 249k 0 --:--:-- 0:00:01 --:--:-- 249k
     ── 14. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 116 0 116 0 0 257 0 --:--:-- --:--:-- --:--:-- 256
     100 272k 0 272k 0 0 244k 0 --:--:-- 0:00:01 --:--:-- 244k
     ── 15. 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:13
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 42831 0 42831 0 0 40292 0 --:--:-- 0:00:01 --:--:-- 40254
     100 272k 0 272k 0 0 247k 0 --:--:-- 0:00:01 --:--:-- 247k
     ── 16. 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:21
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 1951 0 1951 0 0 1649 0 --:--:-- 0:00:01 --:--:-- 1647
     100 272k 0 272k 0 0 216k 0 --:--:-- 0:00:01 --:--:-- 216k
     ── 17. 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:29
     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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 272k 0 272k 0 0 231k 0 --:--:-- 0:00:01 --:--:-- 231k
     ── 18. 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.")
    
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     100 10459 0 10459 0 0 30228 0 --:--:-- --:--:-- --:--:-- 30141
     ── 19. Error: (unknown) (@test-search_data_dict.R#5) ──────────────────────────
     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:5
     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.")
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 93 SKIPPED: 0 FAILED: 19
     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: get_data can download data using utils alternative (@test-get_data.R#28)
     4. Error: (unknown) (@test-get_data_dict.R#4)
     5. Error: (unknown) (@test-get_tb_burden.R#4)
     6. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)
     7. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#14)
     8. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#22)
     9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#31)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-linux-x86_64

Version: 0.5.2
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    ── Attaching packages ────────────────────────────────── tidyverse 1.2.1 ──
    ✔ ggplot2 2.2.1 ✔ purrr 0.2.4
    ✔ tibble 1.4.2 ✔ dplyr 0.7.4
    ✔ tidyr 0.8.0 ✔ stringr 1.3.0
    ✔ readr 1.1.1 ✔ forcats 0.3.0
    ── Conflicts ───────────────────────────────────── tidyverse_conflicts() ──
    ✖ dplyr::filter() masks stats::filter()
    ✖ dplyr::lag() masks stats::lag()
    Loading required package: viridisLite
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    100 116 0 116 0 0 306 0 --:--:-- --:--:-- --:--:-- 306
    100 272k 0 272k 0 0 261k 0 --:--:-- 0:00:01 --:--:-- 261k
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 1 tries.
    Attempting data download in 2.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 2 tries.
    Attempting data download in 3.4 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 3 tries.
    Attempting data download in 1.9 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 4 tries.
    Attempting data download in 4.3 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 5 tries.
    Attempting data download in 4.2 seconds.
    Quitting from lines 34-36 (case_study_global_trends.Rmd)
    Error: processing vignette ‘case_study_global_trends.Rmd’ failed with diagnostics:
    Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-release-linux-x86_64

Version: 0.5.2
Check: examples
Result: ERROR
    Running examples in ‘getTBinR-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: get_data
    > ### Title: Generic Get Data Function
    > ### Aliases: get_data
    >
    > ### ** Examples
    >
    >
    > tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
    + save_name = "TB_burden")
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
     % Total % Received % Xferd Average Speed Time Time Time Current
     Dload Upload Total Spent Left Speed
    
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
     0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
    100 116 0 116 0 0 25 0 --:--:-- 0:00:04 --:--:-- 25
    100 92183 0 92183 0 0 16575 0 --:--:-- 0:00:05 --:--:-- 18121Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 1 tries.
    Attempting data download in 1.7 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 2 tries.
    Attempting data download in 2.2 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 3 tries.
    Attempting data download in 3.1 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 4 tries.
    Attempting data download in 4.6 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Warning in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
     URL 'https://extranet.who.int/tme/generateCSV.asp?ds=estimates': status was 'Failure when receiving data from the peer'
    Downloading data has failed after 5 tries.
    Attempting data download in 1.4 seconds.
    Error in get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates", :
     Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-release-osx-x86_64

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [12s/450s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 93 SKIPPED: 0 FAILED: 19
     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: get_data can download data using utils alternative (@test-get_data.R#28)
     4. Error: (unknown) (@test-get_data_dict.R#4)
     5. Error: (unknown) (@test-get_tb_burden.R#4)
     6. Error: map_tb_burden produces a plot (@test-map_tb_burden.R#6)
     7. Error: map_tb_burden produces a plot when a log transform is used (@test-map_tb_burden.R#14)
     8. Error: map_tb_burden produces a plot with annual change (@test-map_tb_burden.R#22)
     9. Error: map_tb_burden produces an interactive plot (@test-map_tb_burden.R#31)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-osx-x86_64

Version: 0.5.2
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 2 tries.
    Attempting data download in 2.4 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 3 tries.
    Attempting data download in 3 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 4 tries.
    Attempting data download in 0.9 seconds.
    Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
    Downloading the data using fread::data.table has failed. Trying
     again using utils::read.csv
    Downloading data has failed after 5 tries.
    Attempting data download in 4.1 seconds.
    Quitting from lines 34-36 (case_study_global_trends.Rmd)
    Error: processing vignette 'case_study_global_trends.Rmd' failed with diagnostics:
    Data downloading has failed, check your internet connection.
     If this issue is not resolved, contact the package author.
    Execution halted
Flavor: r-release-osx-x86_64