Description Usage Arguments Value Examples
View source: R/exported_functions.R
Check if packages are installed
1 |
... |
(Dots) Package names as bare names, strings, or a character vector. If left empty, lists all installed packages. |
If dots
is empty, a character vector of all installed packages.
Otherwise, return a named logical vector where TRUE
means the package
is installed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
check_installed()
#> [1] "addinslist" "antiword" " ape" "assertthat" ...
check_installed(c("utils", "stats"))
#> utils stats
#> TRUE TRUE
check_installed("datasets", "base", fakepkg)
#> datasets base fakepkg
#> TRUE TRUE FALSE
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.