resfunc: Constructor for ResFunc objects

Description Usage Arguments

View source: R/305_ResFun.R

Description

This function creates an ResFunc object. When queried, it returns the result of an function call.

Usage

1
resfunc(resource, fun, depends = list(), clss = "ResFunc", ...)

Arguments

resource

the name of the resource. Required.

fun

a function that matches the signature function(self, resource, ...)

depends

the names of the resources this function depends on.

clss

name of the class to create. Default ResFunc, must be inherited from this class.

...

additional parameters passed to the function when the resource is queried.


datamart documentation built on May 30, 2017, 12:50 a.m.