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

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

Arguments

...

Not used.

Value

TRUE if the packages is loaded, otherwise FALSE.

Author

Henrik Bengtsson

See also

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

Examples

  pkg <- Package("base")
  print(load(pkg))
#> [1] TRUE