Skip to content

dice

Calculate probabilities of various dice-rolling events

v1.2 · Oct 14, 2014 · GPL (>= 2)

Description

This package provides utilities to calculate the probabilities of various dice-rolling events, such as the probability of rolling a four-sided die six times and getting a 4, a 3, and either a 1 or 2 among the six rolls (in any order); the probability of rolling two six-sided dice three times and getting a 10 on the first roll, followed by a 4 on the second roll, followed by anything but a 7 on the third roll; or the probabilities of each possible sum of rolling five six-sided dice, dropping the lowest two rolls, and summing the remaining dice.

Downloads

CRAN

415

Last 30 days

10388th

1.5K

Last 90 days

8.5K

Last year

Trend: -17.7% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

24

Last 90 days

101

Last year

Trend: -88.9% (30d vs prior 30d)

autoCRAN

4

Last 7 days

7

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dylan Arena <dylanarena1@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Dylan",
                    family = "Arena",
                    role = c("aut", "cre"),
                    email = "dylanarena1@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dylan Arena <dylanarena1@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Dylan",
                    family = "Arena",
                    role = c("aut", "cre"),
                    email = "dylanarena1@gmail.com")
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Dylan Arena <dylanarena1@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Dylan",
                    family = "Arena",
                    role = c("aut", "cre"),
                    email = "dylanarena1@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Dylan Arena <dylanarena1@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Dylan",
                    family = "Arena",
                    role = c("aut", "cre"),
                    email = "dylanarena1@gmail.com")
as necessary.

Code

Structure

Lines of code

593

Files

7

Compiled share

0%

Has compiled src

No

Language breakdown

R 418 (70.5%)Docs 175 (29.5%)

API

Exported functions

2

Internal functions

3

Recent export changes

v1.0+1 pattern:^[[:alpha:]]+

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

\dontrun example ratio

0%

Roxygen coverage

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

2.0.0

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2007-03-24

Latest release

2014-10-13

Avg cadence

530 days

Cold removal rate

Dep drift

0

LOC over versions

v1.0: 517 LOCv1.0-1: 528 LOCv1.1: 567 LOCv1.2: 593 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies gtools dice

Version History

5 tracked
new 1.2 Mar 10, 2026
updated 1.2 ← 1.1 diff Oct 13, 2014
updated 1.1 ← 1.0-1 diff Sep 5, 2008
updated 1.0-1 ← 1.0 diff Jan 18, 2008
new 1.0 Sep 13, 2007