R Packages

API wrappers

waxer
R wrapper for the Wikimedia Analytics Query Service (AQS). This particular wrapper is for the /metrics endpoint of the REST API which provides data and metrics around traffic, users, and content on Wikimedia sites. Get started…
WikidataQueryServiceR
Interface to Wikidata Query Service API for querying Wikidata using SPARQL and getting back data.frames in R. Available on CRAN.

R Markdown

wikipediapreview
Enables easy integration of Wikipedia Preview popup context cards in R Markdown documents – compatible with distill, pkgdown, and blogdown – refer to the blog post for more info
wmfpar
Template based on memor, for use by the Wikimedia Foundation’s Product Analytics team for PDF reports written in R Markdown

tinydensR
An RStudio add-in for playing with distribution parameters and visualizing the resulting probability density and mass functions.

Machine learning

dpmclust
Implements the DP-means algorithm introduced by Kulis and Jordan in their article Revisiting k-means: New Algorithms via Bayesian Nonparametrics. Instead of specifying how many clusters to partition the data into, like one would with k-means, user specifies a penalty parameter λ which controls if/when new clusters are created during iterations.
maltese
Little utility R package for transforming time series data into a format that’s more machine learning-friendly – previous p observations become features.
MultiLabel Prediction Using Gibbs Sampling
Users can employ an external package (e.g. ‘randomForest’, ‘C50’), or supply their own. New observations are classified using a Gibbs sampler since each unobserved label is conditioned on the others. The package includes methods for evaluating the predictions for accuracy and aggregating across iterations and models to produce binary or probabilistic classifications. Available on CRAN.

gsc-utils