Skip to content

binaryRL

0.9.9Package record

Reinforcement Learning Tools for Two-Alternative Forced Choice Tasks

0packages depend
5.4Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Tools for building Rescorla-Wagner Models for Two-Alternative Forced Choice tasks, commonly employed in psychological research. Most concepts and ideas within this R package are referenced from Sutton and Barto (2018) <ISBN:9780262039246>. The package allows for the intuitive definition of RL models using simple if-else statements and three basic models built into this R package are referenced from Niv et al. (2012) doi:10.1523/JNEUROSCI.5498-10.2012. Our approach to constructing and evaluating these computational models is informed by the guidelines proposed in Wilson & Collins (2019) doi:10.7554/eLife.49547. Example datasets included with the package are sourced from the work of Mason et al. (2024) doi:10.3758/s13423-023-02415-x.

Install

Health

CRAN checks
13OK
Slowest check: 2.9 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-04-22
Show 2 earlier changesHide 2 earlier changes
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.9.9
README· In the repository, left out of the releaseVignettes· In the repository, left out of the releaseNEWSNoCitation fileNoWebsiteYes · pkgdown
Help pages
20 (1 internal)includes a package overview page
Examples that run
17%3 run in a plain check · 15 never run
Exported functions with examples
100%
Documented parameters
97%
Return-value docs
100%
Help pages citing references
0%

Downloads

5.4K
CRAN downloads in the past year
Rank #7,102 · ~15/day · ~453/mo
Daily download trend is not available in this view yet.
47930 days
1.2K90 days
5.4K1 year
Compare downloads with other packages →
Also on456 r2u47 autocran

Repository

11Stars
0Forks
0Open issues
0Open PRs
93Releases
411Commits
2Commit identities
psychologyreinforcement-learningtafcmapmler-packagesrcpp
License file reads as GPL-3.0 · 411 commits · Last activity 2026-03-13 · 0% stars, 30d · Default branch at 0.9.11, ahead of CRAN 0.9.9 (checked 2026-10-18)
Responsiveness
not measured

Stars over time

2026-07-14 · 102026-09-01 · 11
PracticesBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/yuki-961004/binaryrl on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-03-13

pkgdown site last built 2026-03-13

Coverage (1)
Coverage reporting
Lint, format, editor (1)
RStudio project
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing binaryRL adds 13 packages (3 with compiled code, 4.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, progressr 650 KB, future 477 KB.

Depends (1)
R >= 4.0.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.8.0 (2025)
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.9Latest
    record
    2026-01-08 · current release · diff ↗
  • 0.9.8
    record
    2025-10-28 · diff ↗
  • 0.9.7
    record
    2025-08-20 · diff ↗ ·
    added 1 export
    func_logl
  • 0.9.0
    record
    2025-07-08 · diff ↗ ·
    removed 1 export
    summary.binaryRL
    added 1 export
    func_pi
  • 0.8.9
    record
    2025-06-15 · diff ↗
  • 0.8.7
    record
    2025-06-10 · diff ↗ ·
    removed 1 export
    rev_e
    added 1 export
    rpl_e
  • 0.8.3
    record
    2025-05-23 · diff ↗
  • 0.8.0
    record
    2025-05-13
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-05-13
Total releases
8 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.0.0
Bundled data
334 KB / 2 files
Download size
417 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("binaryRL")
YuKi. (2026). binaryRL: Reinforcement Learning Tools for Two-Alternative Forced Choice Tasks (Version 0.9.9) [Computer software]. https://doi.org/10.32614/CRAN.package.binaryRL

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for binaryRL version 0.9.9 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy