An R package for digital media analytics