Learn R Programming

R.oo (version 1.7.5)

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 class 'Package':
load(this, ...)

Arguments

...
Not used.

Value

  • TRUE if the packages is loaded, otherwise FALSE.

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