R/protect.R

Defines functions use_protect

#' @keywords internal
use_protect <- function(fm) {
  rrapply(
    fm,
    condition = \(x, .xsiblings) {
      identical(x, quote(I)) &&
        identical(.xsiblings[[1]], quote(I))
    },
    f = \(x) quote(protect),
    how = "replace"
  )
}

Try the JuliaFormulae package in your browser

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

JuliaFormulae documentation built on June 24, 2024, 5:08 p.m.