Learn R Programming

R.oo (version 1.26.0)

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

Description

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

Usage

## Static method (use this):
## Class$forName(name, ...)

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

Value

Returns a Class.

Arguments

...

Optional arguments passed to internal lookup function.

Author

Henrik Bengtsson

See Also

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

Examples

Run this code
  print(Class$forName("Exception"))

Run the code above in your browser using DataLab