inst/tests/rd-closure.r

#' First function
f <- function(){
   .a <- 0
   function(x = 1){
     .a <<- .a + x
     .a
   }
}

#' Second function
f2 <- f()
rm(f)
hadley/roxygen3 documentation built on May 17, 2019, 12:16 p.m.