Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

forName.Class

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 '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

print(Class$forName("Exception"))

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.