Description Usage Arguments Details Value Author(s)
access (call) a member function of a nimbleFunction other
than run, which calling the nimbleFunction directly
uses. Works in R and NIMBLE.
1 | nfMethod(nf, methodName)
|
nf |
a specialized nimbleFunction, i.e. one that has already had setup parameters processed |
methodName |
a character string giving the name of the member function to call |
nimbleFunctions have a default member function called
run, and may have other member functions provided
via the methods argument to nimbleFunction.
nfMethod is primarily used to call the latter,
although it could be used with methodName = 'run'.
Normally arguments will be provided after nfMethod,
e.g. nfMethod(myNimbleFunction, 'foo')(x).
a function that can be called.
NIMBLE development team
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.