knitr::opts_chunk$set( warning = FALSE, message = FALSE, collapse = TRUE, comment = "#>" )
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.
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.
CRAN version
install.packages("rbraries")
Development version
remotes::install_github("ropensci/rbraries")
library('rbraries')
lio_platforms()$name
lio_project_dependents('npm', 'grunt', per_page = 3)
lio_repo_projects('gruntjs', 'grunt', per_page = 2)
lio_subscribe("rubygems", "webmock")
lio_user('github')
rbraries
in R doing citation(package = 'rbraries')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.