Skip to content

Commit

Permalink
drop the country arg from get_national_data
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Feb 5, 2022
1 parent 88b2833 commit c6c36a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ This release is currently under development

## Depreciations

- `get_interventions_data()` has been depreciated.

- `get_interventions_data()` has been depreciated and removed.
- `get_info_covidregionaldata()` has been depreciated and removed.
- The `country` argument to `get_national_data()` has been depreciated and removed. It's functionality can be replicated using the `countries` argument.

# covidregionaldata 0.9.2

Expand Down
11 changes: 0 additions & 11 deletions R/get_national_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#'
#' @param countries A character vector specifying country names of interest.
#' Used to filter the data.
#' @param country `r lifecycle::badge("deprecated")` A character string
#' specifying a country to filter for.
#' @param source A character string specifying the data source (not case
#' dependent). Defaults to WHO (the World Health Organisation). See
#' `get_available_datasets("national")` for all options.
Expand Down Expand Up @@ -54,16 +52,7 @@
#' }
get_national_data <- function(countries, source = "who", level = "1", totals = FALSE,
steps = FALSE, class = FALSE, verbose = TRUE,
country = deprecated(),
...) {
if (is_present(country)) {
deprecate_warn(
"0.9.0",
"covidregionaldata::get_national_data(country = )",
"covidregionaldata::get_national_data(countries = )"
)
countries <- country
}

# check data availability and initiate country class if available
nation_class <- initialise_dataclass(
Expand Down
4 changes: 0 additions & 4 deletions man/get_national_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6c36a3

Please sign in to comment.