Learn R Programming

droll

Overview

droll \ˈdrōl\ adjective. 1. having a humorous, whimsical, or odd quality.

droll is an R package for parsing dice notation, analyzing rolls, calculating success probabilities, and plotting outcome distributions. It can help detail-oriented DMs prepare (un)fair encounters in advance or decide on skill check DCs on the fly. Players might also find it useful for determining the best course of action when in a tough situation.

It is designed to be a very lightweight (only one required dependency), very fast (less than 0.4s to get the full distribution of 40d6), and very precise (symbolic internal representation courtesy of Ryacas) anydice for R.

Installation

Install the released version of droll from CRAN with:

install.packages("droll")

Or install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("curso-r/droll")

Usage

What are you looking for in droll? Are you a level 1 user, a seasoned level 10 programmer, or a god-like level 20 statistician? Choose your class:

Copy Link

Version

Install

install.packages('droll')

Monthly Downloads

219

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Last Published

August 6th, 2021

Functions in droll (0.1.0)

roll

The roll distribution
roll-plot

Plot the roll distribution
r

Get full distribution of a roll
Dice

An S4 class to represent dice
d

Create a die
check

Work with skill checks' probabilities and DCs