R/rules.R

Defines functions rules.rules rules

Documented in rules

#' Extract the streaming rules
#'
#' Provides the information about the rules
#' @param x An object returned by `stream_*_rule`
#' @param ... Other arguments currently ignored.
#' @seealso `stream_add_rule()` and `stream_rm_rule()`.
#' @export
rules <- function(x, ...) {
  UseMethod("rules")
}

#' @export
rules.rules <- function(x, ...) {
  attr(x, "rules")
}

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.