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)

Arguments

formulae

Include installed formulae (default: TRUE)

casks

Include installed casks (default: TRUE)

...

Arguments passed on to brew_cmd

cmd

The command to run (e.g., install)

args

Additional arguments for the command

brew_cmd

Optional: Location of brew command.

echo

Whether to print output and error messages to the screen. Defaults to TRUE for interactive sessions.

package

Name of formula or cask

Value

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

Examples

if (FALSE) {
brew_list()
}
if (FALSE) {
# Check whether or not unixodbc is installed
is_installed("unixodbc")
}