Skip to content

binaryRL

0.9.9

Reinforcement Learning Tools for Two-Alternative Forced Choice Tasks

0packages depend
5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by YuKiFirst published 2025-05-138 releasesCRAN page ↗GitHub ↗

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.2 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
17%
Documented parameters
97%
Return-value docs
100%
References docs
0%

Downloads

5K
CRAN downloads in the past year
Rank #6,552 · ~14/day · ~415/mo
Daily download trend is not available in this view yet.
37530 days
1.5K90 days
5K1 year
Compare downloads with other packages →
Also on491 r2u91 autocran

Repository

Repository
10Stars
0Forks
0Open issues
0Open PRs
93Releases
411Commits
2Contributors
psychologyreinforcement-learningtafcmapmler-packagesrcpp
License GPL-3.0 · 411 commits · Last activity 2026-03-13

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/yuki-961004/binaryrl on 2026-07-19.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 5,928 (59%)Rd 3,649 (36%)C++ 422 (4%)
Code characteristics
Object systems
S31
Cyclomatic complexity
3.0 median / 20 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

36 16 exported

Complexity

4.9 avg / 20 max

Call network

36 nodes / 26 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Datasets

Bundled datasets · 2
NameClassRows × ColsAlso ships in
Mason_2024_G1data.frame45,000 × 11
Mason_2024_G2data.frame45,000 × 11in 2 packages

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.9.9Latest
    2026-01-08 · current release · diff ↗
  • 0.9.8
    2025-10-28 · diff ↗
  • 0.9.7
    2025-08-20 · diff ↗
  • 0.9.0
    2025-07-08 · diff ↗
  • 0.8.9
    2025-06-15 · diff ↗
  • 0.8.7
    2025-06-10 · diff ↗
  • 0.8.3
    2025-05-23 · diff ↗
  • 0.8.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →