This repository contains code to produce figures in Castillo et al. (2025).
This R repository uses the renv package to ensure a reproducible environment. It was run using R version 4.3.3. You can see a list of all packages used in the renv.lock file.
To start, open the samplr-paper.Rproj file in RStudio, which will automatically run .Rprofile, thus installing the renv package if needed.
Then, run
renv::restore()which will install the needed packages. These packages will be installed in the ./renv/library/ folder, thus not affecting your R environments elsewhere. Read more about renv here.
To cite this work, cite
APA: Castillo, L., Li, Y.-X., & Sanborn, A. N. (2025). The samplr package: A tool for modeling human cognition with sampling algorithms. PsyArXiv. https://doi.org/10.31234/osf.io/ax8hm_v1
BibLaTeX:
@online{castillo2025SamplrPackageTool,
title = {The Samplr Package: {{A}} Tool for Modeling Human Cognition with Sampling Algorithms},
author = {Castillo, Lucas and Li, Yun-Xiao and Sanborn, Adam N},
date = {2025},
doi = {10.31234/osf.io/ax8hm_v1},
}