Description Usage Arguments Details Value Note References Examples
Get analytics event data such as event count, percent and time range.
1 2 3 4 5 6 7 8 9 10 11 12 | brew_analytics_events(category = c("install", "install-on-request",
"cask-install", "build-error", "os-version"), delta = c(30, 90, 365))
brew_install_events(delta = c(30, 90, 365))
brew_install_on_request_events(delta = c(30, 90, 365))
brew_build_error_events(delta = c(30, 90, 365))
brew_cask_install_events(delta = c(30, 90, 365))
brew_os_version_events(delta = c(30, 90, 365))
|
category |
the category of the analytics events (the default is
|
delta |
number of previous days to return. One of |
The old Homebrew Analytics API had different endpoints for analytics event metrics. These have been kept as wrappers to the new function and other conveneince functions have been added. Thse are:
[brew_build_error_events()]
[brew_cask_install_events()]
[brew_install_events()]
[brew_install_on_request_events()]
[brew_os_version_events()]
data frame (tibble)
The results of the API call are memoised as they won't likely
won't change between calls in the same R session. Use the
facilities provided by the memoise
package to clear the
cache if you use this in a long running R session.
https://formulae.brew.sh/docs/api/
1 | xdf <- brew_analytics_events("install", 30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.