knitr::opts_chunk$set(message = FALSE, warning = FALSE, collapse = TRUE)
Access 'Homebrew' Formluae Analytics Data
The 'Homebrew Project'
The following functions are implemented:
For formulae info:
brew_formulae
: Retrieve formulae metadata for all homebrew-core formulaeFor info on "events":
brew_analytics_events
: Retrieve Analytics Events for Homebrew Formulae for a Given CategoryThese are just convenience and legacy API support wrappers for brew_analytics_events()
brew_build_error_events
: Retrieve Analytics Events for Homebrew Formulae for a build-error eventsbrew_cask_install_events
: Retrieve Analytics Events for Homebrew Formulae for a cask-install eventsbrew_install_events
: Retrieve Analytics Events for Homebrew Formulae for a install eventsbrew_install_on_request_events
: Retrieve Analytics Events for Homebrew Formulae for install-on-request eventsbrew_os_version_events
: Retrieve Analytics Events for Homebrew Formulae for a OS eventsdevtools::install_git("https://git.sr.ht/~hrbrmstr/homebrewanalytics") # or devtools::install_gitlab("hrbrmstr/homebrewanalytics") # or devtools::install_github("hrbrmstr/homebrewanalytics")
options(width=120)
library(homebrewanalytics) library(tibble) # for printing # current verison packageVersion("homebrewanalytics")
All:
brew_formulae()
One:
brew_formulae("curl")
Two:
brew_formulae(c("curl", "wget"))
Errant name but still retrieves the rest:
brew_formulae(c("curl", "wget", "doesnotexist"))
Retrieve formlua install events for the past 30, 90 or 365 days. We'll juse use the default:
brew_install_events()
Retrieve formlua install-on-request events for the past 30, 90 or 365 days
brew_install_on_request_events()
Retrieve formlua build error events for the past 30
brew_build_error_events()
cloc::cloc_pkg_md()
Please note that the 'homebrewanalytics' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.