clrCallStatic: Call a static method on a CLR type

Description Usage Arguments Value Examples

Description

Call a static method on a CLR type

Usage

1
clrCallStatic(typename, methodName, ...)

Arguments

typename

type name, possibly namespace and assembly qualified type name, e.g. 'My.Namespace.MyClass,MyAssemblyName'.

methodName

the name of a static method of the type

...

additional method arguments passed to .External

Value

an object resulting from the call. May be a CLR object, or a native R object for common types. Can be NULL.

Examples

1
2
3
4
5
6
## Not run: 
library(rClr)
cTypename <- "Rclr.TestCases"
clrCallStatic(cTypename, "IsTrue", TRUE)

## End(Not run)

jmp75/rClr documentation built on June 11, 2019, 6:45 p.m.