forName.Class: Gets a Class object by a name of a class

Description Usage Arguments Value Author(s) See Also Examples

Description

Gets a Class object by a name of a class. If no such class exists and exception is thrown.

Usage

1
2
3
4
5
6
## Static method (use this):
## Class$forName(name, ...)

## Don't use the below:
## S3 method for class 'Class'
forName(static, name, ...)

Arguments

...

Optional arguments passed to internal lookup function.

Value

Returns a Class.

Author(s)

Henrik Bengtsson

See Also

class(). setConstructorS3(). For more information see Class.

Examples

1
  print(Class$forName("Exception"))

R.oo documentation built on Aug. 26, 2020, 5:13 p.m.