View source: R/nimbleFunction_core.R
nimbleFunctionVirtual | R Documentation |
define argument types and returnType for the run
function and any methods
, to be used in the contains
argument of nimbleFunction
nimbleFunctionVirtual(
contains = NULL,
run = function() {
},
methods = list(),
name = NA,
methodControl = list()
)
contains |
Not yet functional |
run |
A NIMBLE function that will only be used to inspect its argument types and returnType. |
methods |
An optional named list of NIMBLE functions that will also only be used for inspecting argument types and returnTypes. |
name |
An optional name used internally by the NIMBLE compiler. This is usually omitted and NIMBLE provides one. |
methodControl |
An optional list that allows specification of methods with defaults. |
See the NIMBLE User Manual section on nimbleFunctionLists for explanation of how to use a virtual nimbleFunction.
An object that can be passed as the contains
argument to nimbleFunction
or as the argument to nimbleFunctionList
NIMBLE development team
nimbleFunction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.