Gets the package to which the class belongs.

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

Arguments

...

Not used.

Value

Returns a Package.

Author

Henrik Bengtsson

See also

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

Examples

  print(getPackage(Object))
#> [1] "R.oo"