ANY: The ANY class

Description Details Examples

Description

ANY is a data type to represent any S4 class.

Details

S4 implements the ANY class, but does not document it.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# creates a new class with "ANY"
setClass(Class="mtkProcess",
		
		representation=representation(
				name="character",
				protocol="character",
				site="character",
				service="character",
				parameters="ANY", 
				ready="logical",
				state="logical",
				result="ANY"
		),
		
		prototype=prototype(parameters=NULL, ready=FALSE,
		                    state=FALSE, result=NULL)

)

mtk documentation built on May 2, 2019, 4:15 a.m.