binaryRL
0.9.9Reinforcement Learning Tools for Two-Alternative Forced Choice Tasks
Overview
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
- OK2026-04-2214 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1813 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 17%
- Documented parameters
- 97%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Repository practices
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.
Dependencies
Nothing depends on this yet.
Code & Tests
- 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
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| Mason_2024_G1 | data.frame | 45,000 × 11 | – |
| Mason_2024_G2 | data.frame | 45,000 × 11 | in 2 packages |
People & History
8 releases. Pick two to compare their code metrics. R releases are shown for context.
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