rbraries

cran checks Build Status codecov.io rstudio mirror downloads cran version

rbraries is a client for interacting with the Libraries.io API https://libraries.io/api

Package API:

As you can see all functions are prefixed with lio_ to avoid namespace conflicts with other R packages.

Authentication

You need an API key to use this package. Get one by logging in to https://libraries.io (they have GitHub login and others), then go to your Settings page, then scroll down to API key section and grab your key.

You can pass the key into function calls, but that’s not recommended. Store your key by putting a LIBRARIES_IO_KEY entry in your .Renviron file or similar file like e.g. .zshrc or .bash_profile, etc. We’ll grab that key so that you don’t have to pass it into each function call.

Installation

CRAN version

install.packages("rbraries")

Development version

remotes::install_github("ropensci/rbraries")
library('rbraries')

platforms

lio_platforms()$name
#>  [1] "Go"         "NPM"        "Packagist"  "Pypi"       "NuGet"     
#>  [6] "Maven"      "Rubygems"   "Bower"      "CocoaPods"  "Wordpress" 
#> [11] "Cargo"      "CPAN"       "Clojars"    "CRAN"       "Hackage"   
#> [16] "Meteor"     "Atom"       "Pub"        "Hex"        "PlatformIO"
#> [21] "Puppet"     "Emacs"      "Homebrew"   "SwiftPM"    "Carthage"  
#> [26] "Julia"      "Sublime"    "Conda"      "Dub"        "Racket"    
#> [31] "Elm"        "Haxelib"    "Nimble"     "Alcatraz"   "PureScript"

projects

lio_project_dependents('npm', 'grunt', per_page = 3)

repositories

lio_repo_projects('gruntjs', 'grunt', per_page = 2)

subscriptions

lio_subscribe("rubygems", "webmock")

user methods

lio_user('github')

Meta

ropensci_footer