R/active.r

Defines functions is_active_binding

Documented in is_active_binding

#' Active binding info
#' 
#' @param x unquoted object name
#' @export
#' @examples
#' x <- 10
#' is_active_binding(x)
#' x %<a-% runif(1)
#' is_active_binding(x)
#' y <- x
#' is_active_binding(y)
is_active_binding <- function(x) {
  bindingIsActive(substitute(x), parent.frame())
}
hadley/pryr documentation built on Jan. 5, 2024, 10:38 a.m.