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())
}

Try the pryr package in your browser

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

pryr documentation built on Feb. 18, 2018, 9:02 a.m.