Retrieve analytics data for a formula or cask

brew_analytics(
  package,
  days = 30,
  category = c("install", "install-on-request", "build-error"),
  ...
)

Arguments

package

Name of one or more formulae or casks

days

Number of days' worth of analytics data to retrieve. One of 30 (default), 90, or 365.

category

Type of analytics data to retrieve. One of "install" (default), "install-on-request", or "build-error".

...

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.

Examples

if (FALSE) {
# Retrieve 90-day install data for unixodbc
brew_analytics("unixodbc", days = 90)
}