rbraries

knitr::opts_chunk$set(
  warning = FALSE,
  message = FALSE,
  collapse = TRUE,
  comment = "#>"
)

cran checks R-CMD-check codecov.io rstudio mirror downloads cran version

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

Package API:

cat(paste(" -", paste(grep("lio", sprintf("`%s`", getNamespaceExports("rbraries")), value = TRUE), collapse = "\n - ")))

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

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/rbraries documentation built on May 14, 2022, 1:22 a.m.