brew_list() lists all installed packages
is_installed() checks if a given package is installed
brew_list(formulae = TRUE, casks = TRUE, ...) is_installed(package, formulae = TRUE, casks = TRUE)
| formulae | Include installed formulae (default: |
|---|---|
| casks | Include installed casks (default: |
| ... | Arguments passed on to
|
| package | Name of formula or cask |
A data frame containing the name and
version of each installed package and how it was installed (i.e., via
formula or cask).
A logical value indicating whether or not the package is installed
if (FALSE) { brew_list() } if (FALSE) { # Check whether or not unixodbc is installed is_installed("unixodbc") }