knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

Travis build status AppVeyor build status

greatfire

Datasets of keywords and urls censored on the Chinese internet, taken from greatfire.org

:construction: Note

Though not publicly mentioned greatfire.org has an API publicly available, it's not difficult to uncover. However, as I very much appreciate their project this package does not provide direct access to it and instead provides two datasets that I pledge to keep updated. If it is too outdated please open an issue.

Last updated: r Sys.time()

Installation

You can install greatfire from Github using via the remotes or devtools package.

# install.packages("remotes")
remotes::install_github("news-r/greatfire")

Example

Both datasets are rather large and therefore not lazily loaded, you therefore have to explicitly call the data function.

library(greatfire)

data(censored_keywords)
nrow(censored_keywords)
head(censored_keywords)

data(censored_urls)
nrow(censored_urls)
head(censored_urls)

There are two convenience search_* functions to search through the data.

gh <- search_urls("github.com") 
knitr::kable(gh)


news-r/greatfire documentation built on Feb. 27, 2020, 3:40 p.m.