check_pkg_status {librarian} | R Documentation |
Check if packages are installed or attached
Description
Check if packages are installed or attached
Usage
check_pkg_status(..., status, use_list = FALSE)
Arguments
... |
(Dots) Package names as bare names, strings, or a vector of strings.
If left blank, returns a list of all packages that are installed/attached
depending on the value of |
status |
(Character) |
use_list |
(Logical) If |
Value
If dots
is empty, a character vector of package names. Otherwise,
return a named logical vector where TRUE
means the package is installed
or attached, depending on the value of status
.