reshelf {librarian}R Documentation

Detach and then reattach packages to the search path

Description

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

Usage

reshelf(...)

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


reshelf(datasets)

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

print(.Last.value)

#> datasets 
#>     TRUE



[Package librarian version 1.8.1 Index]