Learn R Programming

modules (version 0.4.0)

modfun: Class modfun

Description

The constructor and a print method for the class 'modfun', a function in a module. The only purpose is to have a print method for ad-hoc documentation.

Usage

modfun(x)
"print"(x, ...)

Arguments

x
(function)
...
(ignored)

Examples

Run this code
fun <- function() {
  ## This is documentation
  ## Triggered by '##'
  NULL
}

modfun(fun)

Run the code above in your browser using DataLab