R/collections.R

Defines functions get_collections lookup_collections

Documented in get_collections lookup_collections

#' Collections API
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' `get_collections()` and `lookup_collections()` have been deprecated
#' since the underlying Twitter API has been deprecated.
#'
#' @keywords internal
#' @export
lookup_collections <- function(id, n = 200,
                               parse = TRUE,
                               token = NULL,
                               ...) {
  lifecycle::deprecate_stop("1.0.0", "lookup_collections()")
}

#' @export
#' @rdname lookup_collections
get_collections <- function(user = NULL,
                            status_id = NULL,
                            n = 200,
                            cursor = NULL,
                            parse = TRUE,
                            token = NULL) {

  lifecycle::deprecate_stop("1.0.0", "get_collections()")
}

Try the rtweet package in your browser

Any scripts or data that you put into this service are public.

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.