use: Loading/Attaching of Packages

View source: R/use.R

useR Documentation

Loading/Attaching of Packages

Description

use loads and attaches add-on packages.

Usage

use(pkg)

Arguments

pkg

the name of a package, given as a name or literal character string.

Details

This function loads the namespace of the package with name pkg and attach it on the search list. If package is not installed, it asks if you want to install it, and if yes loads/attaches the package. Else, it returns a message.If the package does not exists, it returns FALSE and gives a warning. It checks and updates the list of currently attached packages and do not reload a namespace which is already loaded.

Author(s)

Ahmed Aldarmaki aaldarmaki@wesleyan.edu

Examples

## Not run: use(dplyr)
## Not run: use("dplyr")

aaldarmaki9/dsproject documentation built on July 16, 2025, 10:13 p.m.