brew_version() returns version info about Homebrew, core formulae, and casks.

brew_version(...)

Arguments

...

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.

Value

A named list containing the following items:

homebrew

String describing the version of Homebrew

core

String describing git commit info for core formulae

cask

String describing git commit info for casks, if tapped

Note

Version information for installed packages can be retrieved with brew_list()

Examples

if (FALSE) {
brew_version()
}