R/is_magicalized.R

Defines functions is_magicalized

Documented in is_magicalized

#' Check whether for() is magicalized or not
#'
#' @param envir environment
#'
#' @return TRUE if for() is magicalized.
#'
#' @export
is_magicalized <- function(envir = parent.frame()) {
  !is.primitive(get("for", envir = envir))
}

Try the magicfor package in your browser

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

magicfor documentation built on May 1, 2019, 7:32 p.m.