knitr::opts_chunk$set(message = FALSE, warning = FALSE, collapse = TRUE)

homebrewanalytics

Access 'Homebrew' Formluae Analytics Data

Description

The 'Homebrew Project' has a myriad of "recipes" that make life easier for 'macOS' users by enabling them to (mostly) effortlessly install popular open source libraries, tools, utilities and applications. The project collectes anonymous metrics from users who have not opted-out of metrics collection and makes them available via a 'JSON' 'API'.

What's Inside The Tin

The following functions are implemented:

For formulae info:

For info on "events":

These are just convenience and legacy API support wrappers for brew_analytics_events()

Installation

devtools::install_git("https://git.sr.ht/~hrbrmstr/homebrewanalytics")
# or
devtools::install_gitlab("hrbrmstr/homebrewanalytics")
# or
devtools::install_github("hrbrmstr/homebrewanalytics")
options(width=120)

Usage

library(homebrewanalytics)
library(tibble) # for printing

# current verison
packageVersion("homebrewanalytics")

Formulae info

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"))

Analytic Events

Retrieve formlua install events for the past 30, 90 or 365 days. We'll juse use the default:

brew_install_events()

Install On Request Events

Retrieve formlua install-on-request events for the past 30, 90 or 365 days

brew_install_on_request_events()

Build Error Events Events

Retrieve formlua build error events for the past 30

brew_build_error_events()
cloc::cloc_pkg_md()

Code of Conduct

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.



hrbrmstr/homebrewanalytics documentation built on May 7, 2019, 7:41 a.m.