Skip to content

Commit

Permalink
switch get_linelist to depreciate_stop vs warn
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Feb 5, 2022
1 parent aff45c6 commit 6700bc2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
4 changes: 1 addition & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ importFrom(httr,POST)
importFrom(httr,content)
importFrom(httr,status_code)
importFrom(jsonlite,fromJSON)
importFrom(lifecycle,deprecate_warn)
importFrom(lifecycle,deprecated)
importFrom(lifecycle,is_present)
importFrom(lifecycle,deprecate_stop)
importFrom(lubridate,as_date)
importFrom(lubridate,dmy)
importFrom(lubridate,mdy)
Expand Down
4 changes: 2 additions & 2 deletions R/get_linelist.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' @keywords internal
#'
#' @importFrom lifecycle deprecate_warn
#' @importFrom lifecycle deprecate_stop
#' @importFrom dplyr if_else select mutate filter
#' @importFrom lubridate dmy
#' @importFrom utils download.file untar
Expand All @@ -35,7 +35,7 @@
#' }
#'
get_linelist <- function(clean = TRUE, report_delay_only = FALSE) {
deprecate_warn(
deprecate_stop(
when = "0.9.0",
what = "covidregionaldata::get_linelist()",
details = c(
Expand Down
1 change: 0 additions & 1 deletion R/get_national_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#' @return A tibble with data related to cases, deaths, hospitalisations,
#' recoveries and testing.
#' @inheritParams get_regional_data
#' @importFrom lifecycle deprecated is_present deprecate_warn
#' @family interface
#' @seealso [WHO()], [ECDC()], [JHU()], [Google()]
#' @export
Expand Down
1 change: 0 additions & 1 deletion R/get_regional_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#' @inheritParams initialise_dataclass
#' @return A tibble with data related to cases, deaths, hospitalisations,
#' recoveries and testing stratified by regions within the given country.
#' @importFrom lifecycle deprecated is_present deprecate_warn
#' @family interface
#' @seealso [Italy()], [UK()]
#' @export
Expand Down
9 changes: 0 additions & 9 deletions man/get_regional_data.Rd

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

0 comments on commit 6700bc2

Please sign in to comment.