Package: dndR 3.1.0.900

Nicholas Lyon

dndR: Dungeons & Dragons Functions for Players and Dungeon Masters

The goal of 'dndR' is to provide a suite of Dungeons & Dragons related functions. This package is meant to be useful both to players and Dungeon Masters (DMs). Some functions apply to many tabletop role-playing games (e.g., dice rolling), but others are focused on Fifth Edition (a.k.a. "5e") and where possible both the 2014 and 2024 versions are supported.

Authors:Nicholas Lyon [aut, cre, cph], Tim Schatto-Eckrodt [aut], Humberto Nappo [aut], Billy Mitchell [aut]

dndR_3.1.0.900.tar.gz
dndR_3.1.0.900.zip(r-4.7)dndR_3.1.0.900.zip(r-4.6)dndR_3.1.0.900.zip(r-4.5)
dndR_3.1.0.900.tgz(r-4.6-any)dndR_3.1.0.900.tgz(r-4.5-any)
dndR_3.1.0.900.tar.gz(r-4.7-any)dndR_3.1.0.900.tar.gz(r-4.6-any)
dndR_3.1.0.900.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
dndR/json (API)
NEWS

# Install 'dndR' in R:
install.packages('dndR', repos = c('https://njlyon0.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/njlyon0/dndr/issues

Pkgdown/docs site:https://njlyon0.github.io

Datasets:
  • creatures - Dungeons and Dragons Creature Information
  • monster_table - Dungeons and Dragons Quick Table for Creature Statistics
  • spells - Dungeons and Dragons Spell Information

On CRAN:

Conda:

data-sciencedungeons-and-dragonsttrpg

6.86 score 23 stars 15 scripts 241 downloads 38 exports 29 dependencies

Last updated from:7679c10f4f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK151
source / vignettesOK189
linux-release-x86_64OK149
macos-release-arm64OK126
macos-oldrel-arm64OK105
windows-develOK154
windows-releaseOK105
windows-oldrelOK112
wasm-releaseOK107

Exports:ability_scoresability_singularclass_blockcoincr_convertcreature_listcreature_textd10d100d12d2d20d3d4d6d8dnd_classesdnd_damage_typesdnd_racesencounter_creatorfirst_names_femfirst_names_mascmod_calcmonster_creatormonster_statsnpc_creatorparty_diagrampc_creatorpc_level_calcprobability_plotrace_modsrerollrollspell_listspell_textsurnamesxp_costxp_pool

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Character Creation

Rendered fromdndr_01_characters.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2025-04-03
Started: 2024-04-17

Dice Rolling

Rendered fromdndr_00_dice.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2024-04-17
Started: 2024-04-17

DMG versus dndR

Rendered fromdndr_99_dmg-vs-dndr.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2025-04-03
Started: 2024-04-17

Encounter Balancing

Rendered fromdndr_04_encounters.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2025-04-03
Started: 2024-04-17

Finding & Making Creatures

Rendered fromdndr_02_creatures.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2024-04-26
Started: 2024-04-17

Spells

Rendered fromdndr_03_spells.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2024-04-17
Started: 2024-04-17

Visual Tools

Rendered fromdndr_05_visuals.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2024-04-17
Started: 2024-04-17

Readme and manuals

Help Manual

Help pageTopics
Roll for All Ability Scoresability_scores
Rolls for a Single Ability Scoreability_singular
Assign Ability Scores Based on Classclass_block
Flip a Coincoin
Convert Challenge Rating to Experience Pointscr_convert
List Creatures Based on Criteriacreature_list
Retrieve Full Creature Description Text by Creature Namecreature_text
Dungeons and Dragons Creature Informationcreatures
Roll a Ten-Sided Dice ("d10")d10
Roll a One Hundred-Sided Dice ("d100")d100
Roll a Twelve-Sided Dice ("d12")d12
Roll a Two-Sided Diced2
Roll a Twenty-Sided Dice ("d20")d20
Roll a Three-Sided Diced3
Roll a Four-Sided Dice ("d4")d4
Roll a Six-Sided Dice ("d6")d6
Roll an Eight-Sided Dice ("d8")d8
Return Vector of Accepted Classesdnd_classes
Return Vector of Supported DnD Damage Typesdnd_damage_types
Return Vector of Supported DnD Racesdnd_races
Balance a Combat Encounter for Given Party Composition and Difficultyencounter_creator
Return Vector of Feminine First Namesfirst_names_fem
Return Vector of Masculine First Namesfirst_names_masc
Calculate Modifier for Specified Ability Scoremod_calc
Creates a Monster for Given Party Level and Sizemonster_creator
Quickly Identify Monster Statisticsmonster_stats
Dungeons and Dragons Quick Table for Creature Statisticsmonster_table
Create a Non-Player Character (NPC)npc_creator
Generate a Diagram of a Party's Ability Scoresparty_diagram
Create a Player Character (PC)pc_creator
Calculate Player Character (PC) Level from Current Experience Points (XP)pc_level_calc
Generate a Plot of the Frequency of Roll Outcomesprobability_plot
Identify Race-Based Ability Modifiersrace_mods
Re-Roll 1s from a Prior Dice Rollreroll
Roll Any Number of Diceroll
List Spells Based on Criteriaspell_list
Retrieve Full Spell Description Text by Spell Namespell_text
Dungeons and Dragons Spell Informationspells
Return Vector of Surnamessurnames
Adjust the XP Total by Number of Monsters and Party Sizexp_cost
Calculate Total XP of Monsters for Given Party Level and Difficultyxp_pool