reshelf: Detach and then reattach packages to the search path

View source: R/exported_functions.R

reshelfR 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



DesiQuintans/librarian documentation built on Dec. 29, 2024, 10:59 p.m.