Description Usage Arguments Value Examples
View source: R/exported_functions.R
Packages can be detached by themselves, with their dependencies safely (i.e. as long as those dependencies are not being used by other packages), or with their dependencies unsafely (regardless of whether those dependencies are still needed). All non-default packages can be detached at once too, including Librarian itself.
1 2 3 4 5 6 7 |
... |
(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. |
everything |
(Logical) If |
also_depends |
(Logical) If |
safe |
(Logical) If |
quiet |
(Logical) If |
Invisibly returns a named logical vector, where the names are the packages
and TRUE
means that the package was successfully detached.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # These are the same:
#> unshelf(janitor, desiderata, purrr)
#> unshelf(janitor, DesiQuintans/desiderata, purrr)
# unshelf() returns invisibly; bind its output to a variable or access the .Last.value.
#> print(.Last.value)
#> desiderata janitor purrr
#> TRUE TRUE TRUE
#> unshelf(everything = TRUE)
#> print(.Last.value)
#> librarian testthat
#> TRUE TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.