package: A synonym for the library() function

Description Usage Arguments Examples

Description

A synonym for the library() function

Usage

1

Arguments

...

arguments to be passed to library

This function's (and package's) sole purpose is to provide a synonym for R's technically-correct-but-confusing library function. The official story from R FAQ 7.29: "... library() is employed to load a package from libraries containing packages."

Examples

1
2
3
4
package("MASS")
## this is not guaranteed to produce library-vs-package snark,
## but it probably will.
if (require("fortunes")) fortune("library")

bbolker/rlibpkg documentation built on May 11, 2019, 9:30 p.m.