README.md

R wrapper to the SharedCount API.

Installation

# install.packages("devtools")
devtools::install_github("news-r/sharedcount")

Functions

Functions that directly call API:

Convenience funtions:

Since bulk requests (sc_bulk_p and sc_bulk_g) are not part of the free plan, there is a convinience function for free users to call multiple urls in one function but multiple calls.

Setup

Get a free key from the sharedcount.com website.

sharedcount_key(key = "xxXXxxXxxXXxX")

Note that you can specify the SHAREDCOUNT_API_KEY key as an environment variable in your .Renviron for convenience.

Example

All functions start with sc_, at the exception of the one to setup your session sharedcount_key.

sharedcount_key(key = "xxXXxxXxxXXxX")

sc_count("https://cran.r-project.org/")


news-r/sharedcount documentation built on July 19, 2019, 3:07 p.m.