These are the most common (and least problematic) scenarios for where the R user normally encounters or needs metaprogramming:

line.plot <- function(x, y, ...) {
  plot(x, y, ...)
}
line.plot <- function(x, y, ...) {
  args <- get_call()

  args <- c(args(x=x, y=y), dots(...))

  plot %()% args
}
line.plot <- function(x, y, ...) {

}


crowding/nse documentation built on Jan. 5, 2024, 12:14 a.m.