brew_formulae: Retrieve formulae metadata for all homebrew-core formulae

Description Usage Arguments Value Note References Examples

Description

Get the 'brew info –json=v1“ output for all current Homebrew/homebrew-core formulae or get the same output for one or more current Homebrew/homebrew-core formulae with an extra analytics key with analytics data by specify

Usage

1
brew_formulae(formulae = "all")

Arguments

formluae

if "all" (the default) then metadata on all Homebrew/homebrew-core formulae will be returned. Otherwise the API will be queried for all formulae in the passed in character vector and returned, skipping (and warning) on any specified formula that does not exist.

Value

data frame (tibble) with formula analytics data or NULL if what you looked for was not found.

Note

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.

References

https://formulae.brew.sh/docs/api/

Examples

1
2
3
f <- brew_formulae() # same as manually specifying "all"
f <- brew_formulae("curl")
f <- brew_formulae(c("curl", "youtube-dl", "blemenge"))

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