getPackage.Class: Gets the package to which the class belongs

getPackage.ClassR Documentation

Gets the package to which the class belongs

Description

Gets the package to which the class belongs.

Usage

## S3 method for class 'Class'
getPackage(this, ...)

Arguments

...

Not used.

Value

Returns a Package.

Author(s)

Henrik Bengtsson

See Also

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

Examples

  print(getPackage(Object))

HenrikBengtsson/R.oo documentation built on Jan. 31, 2024, 9:06 a.m.