reshelf: Detach and then reattach packages to the search path

Description Usage Arguments Value Examples

View source: R/exported_functions.R

Description

Convenience shortcut for force-unshelfing packages and then shelfing them again.

Usage

1

Arguments

...

(Names) Packages as bare names. For packages that come from GitHub, you can keep the username/package format, or omit the username and provide just the package name.

Value

Invisibly returns a named logical vector, where the names are the packages requested in ... and TRUE means that the package was successfully attached.

Examples

1
2
3
4
5
6
7
8
reshelf(datasets)

# reshelf() returns invisibly; bind its output to a variable or access the .Last.value.

print(.Last.value)

#> datasets 
#>     TRUE

librarian documentation built on July 12, 2021, 5:07 p.m.