Learn R Programming

R.oo (version 1.26.0)

load.Package: Loads a package

Description

Loads a package. This is an alternative way to use library() to load a package.

Usage

# S3 method for Package
load(this, ...)

Value

TRUE if the packages is loaded, otherwise FALSE.

Arguments

...

Not used.

Author

Henrik Bengtsson

See Also

*unload(). *isLoaded(). search(). For more information see Package.

Examples

Run this code
  pkg <- Package("base")
  print(load(pkg))

Run the code above in your browser using DataLab