diff --git a/R/auth.R b/R/auth.R index f1d88830..c86727cc 100644 --- a/R/auth.R +++ b/R/auth.R @@ -472,7 +472,9 @@ auth_path <- function(...) { #' @export #' @rdname rtweet_user rtweet_oauth2 <- function(client = NULL, scopes = NULL) { - .Defunct(msg = "No longer needed, httr2 handles it automatically", package = "rtweet") + lifecycle::deprecate_stop("2.0.0", what = "rtweet_oatuh2()", + details = c("No longer needed, httr2 handles it automatically", + i = "Register your client with `client_as('my_client')` and make your requests")) client <- client %||% client_get() if (!is_client(client)) { abort(c("Client not valid", diff --git a/R/http.R b/R/http.R index 6581c0b5..2e217030 100644 --- a/R/http.R +++ b/R/http.R @@ -31,7 +31,8 @@ TWIT_method <- function(method, token, api, details = c("This function might work until your bot/app/user is blocked or fail randomly!", "!" = "The API has been deprecated and the new API v2.2 requires subscriptions for most endpoints.", i = "See updates of function and API: help('rtweet-deprecated', 'rtweet' )" - )) + ), + always = TRUE) # need scipen to ensure large IDs are not displayed in scientific notation # need ut8-encoding for the comma separated IDs withr::local_options(scipen = 14, encoding = "UTF-8") diff --git a/R/post-tweet.R b/R/post-tweet.R index 17292ec9..243e0f0b 100644 --- a/R/post-tweet.R +++ b/R/post-tweet.R @@ -61,7 +61,6 @@ post_tweet <- function(status = "my first rtweet #rstats", lifecycle::deprecate_warn("1.0.0", "post_tweet(destroy_id)", "post_destroy()") return(post_destroy(destroy_id, token=token)) } - .Defunct("tweet_post", "rtweet", "Due to API changes use tweet_post()") ## if retweet if (!is.null(retweet_id)) {