Skip to contents

Gimme an R! Gimme an S! Gimme a Rock and Stone.

rockandstone is a package for playing voicelines from the video game Deep Rock Galactic in R.

Installation

Install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("mccarthy-m-g/rockandstone")

Usage

By default the voiceline pool includes all “Safe For Work” voicelines.

“Not Safe For Work Voicelines” (with profanity) are opt-in.

rockandstone(nsfw = TRUE)

The voiceline pool can also be reduced to certain categories and/or sentiments to suit your use case.

rockandstone(category = "salute")
rockandstone(sentiment = "negative")

Voicelines can be played on error by setting the error argument in options(). This can be specified in startup files such as .Rprofile to make it persist across sessions.

options(error = function() rockandstone(sentiment = "negative"))

Requirements

rockandstone currently uses the beepr package to play sounds in R.

macOS and Windows

Sound playback is handled by the audio package and no external program is needed.

Linux

Sound playback is handled by one of:

  • paplay utility from the Pulse Audio system
  • aplay utility from the ALSA system
  • VLC media player installed and on the PATH