{
  "_id": "6ac8a767de46216d5edd5256",
  "Package": "binaryRL",
  "Version": "0.9.11",
  "Title": "Reinforcement Learning Tools for Two-Alternative Forced Choice\nTasks",
  "Description": "Tools for building Rescorla-Wagner Models for\nTwo-Alternative Forced Choice tasks, commonly employed in\npsychological research. Most concepts and ideas within this R\npackage are referenced from Sutton and Barto (2018)\n<ISBN:9780262039246>. The package allows for the intuitive\ndefinition of RL models using simple if-else statements and\nthree basic models built into this R package are referenced\nfrom Niv et al. (2012) <doi:10.1523/JNEUROSCI.5498-10.2012>.\nOur approach to constructing and evaluating these computational\nmodels is informed by the guidelines proposed in Wilson &\nCollins (2019) <doi:10.7554/eLife.49547>. Example datasets\nincluded with the package are sourced from the work of Mason et\nal. (2024) <doi:10.3758/s13423-023-02415-x>.",
  "Authors@R": "c(person(\ngiven = \"YuKi\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hmz1969a@gmail.com\",\ncomment = c(ORCID = \"0009-0000-1378-1318\")\n))",
  "Maintainer": "YuKi <hmz1969a@gmail.com>",
  "URL": "https://yuki-961004.github.io/binaryRL/",
  "BugReports": "https://github.com/yuki-961004/binaryRL/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "TRUE",
  "ByteCompile": "TRUE",
  "RoxygenNote": "7.3.3",
  "Repository": "https://yuki-961004.r-universe.dev",
  "Date/Publication": "2026-03-13 09:13:58 UTC",
  "RemoteUrl": "https://github.com/yuki-961004/binaryrl",
  "RemoteRef": "HEAD",
  "RemoteSha": "6078e067425a24fac40a993f1eb375b44e2fe770",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-09 08:30:33 UTC",
    "User": "root"
  },
  "Author": "YuKi [aut, cre] (ORCID: <https://orcid.org/0009-0000-1378-1318>)",
  "_user": "yuki-961004",
  "_type": "src",
  "_file": "binaryRL_0.9.11.tar.gz",
  "_fileid": "https://r2.ropensci.org/1af95d065005e390b8601bd4c5b63ce8ce6e93bbf9391d7c37c2d23e10de2699",
  "_filesize": 759794,
  "_sha256": "1af95d065005e390b8601bd4c5b63ce8ce6e93bbf9391d7c37c2d23e10de2699",
  "_expires": "2027-01-17T08:35:49.000Z",
  "_created": "2026-10-09T08:30:33.000Z",
  "_published": "2026-10-09T08:35:51.521Z",
  "_buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113737613548,
      "time": 129,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11604366853"
    },
    {
      "job": 113737613503,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11604206808"
    },
    {
      "job": 113737613525,
      "time": 136,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11603909814"
    },
    {
      "job": 113737613473,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11604461484"
    },
    {
      "job": 113737613472,
      "time": 87,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11604566234"
    },
    {
      "job": 113737613512,
      "time": 258,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11604372437"
    },
    {
      "job": 113737613689,
      "time": 118,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11603894929"
    },
    {
      "job": 113737613461,
      "time": 214,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11604476886"
    },
    {
      "job": 113736682603,
      "time": 160,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11603849824"
    },
    {
      "job": 113737613318,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11603938109"
    },
    {
      "job": 113737613538,
      "time": 241,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11604446884"
    },
    {
      "job": 113737613537,
      "time": 134,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11604227685"
    },
    {
      "job": 113737613427,
      "time": 103,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11604022970"
    },
    {
      "job": 113737613542,
      "time": 228,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11603798664"
    },
    {
      "job": 113737613466,
      "time": 108,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11605025282"
    }
  ],
  "_upstream": "https://github.com/yuki-961004/binaryrl",
  "_commit": {
    "id": "6078e067425a24fac40a993f1eb375b44e2fe770",
    "author": "yuki <hmz1969a@gmail.com>",
    "committer": "yuki <hmz1969a@gmail.com>",
    "message": "v0.9.11\n\nrpl_e确实不需要seed\n然后github/workflow改了一下版本\n",
    "time": 1773393238
  },
  "_maintainer": {
    "name": "YuKi",
    "email": "hmz1969a@gmail.com",
    "login": "yuki-961004",
    "description": "",
    "uuid": 110153830,
    "orcid": "0009-0000-1378-1318"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "compiler",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "doFuture",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "doRNG",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Suggests"
    },
    {
      "package": "GenSA",
      "role": "Suggests"
    },
    {
      "package": "GA",
      "role": "Suggests"
    },
    {
      "package": "DEoptim",
      "role": "Suggests"
    },
    {
      "package": "pso",
      "role": "Suggests"
    },
    {
      "package": "mlrMBO",
      "role": "Suggests"
    },
    {
      "package": "mlr",
      "role": "Suggests"
    },
    {
      "package": "ParamHelpers",
      "role": "Suggests"
    },
    {
      "package": "smoof",
      "role": "Suggests"
    },
    {
      "package": "lhs",
      "role": "Suggests"
    },
    {
      "package": "DiceKriging",
      "role": "Suggests"
    },
    {
      "package": "rgenoud",
      "role": "Suggests"
    },
    {
      "package": "cmaes",
      "role": "Suggests"
    },
    {
      "package": "nloptr",
      "role": "Suggests"
    }
  ],
  "_owner": "yuki-961004",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 2
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 2
    },
    {
      "week": "2026-07",
      "n": 3
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.9.8",
      "date": "2025-10-17"
    },
    {
      "name": "v0.9.9",
      "date": "2025-12-22"
    },
    {
      "name": "v0.9.10",
      "date": "2026-03-13"
    },
    {
      "name": "v0.9.11",
      "date": "2026-03-13"
    }
  ],
  "_topics": [
    "map",
    "mle",
    "psychology",
    "rcpp",
    "reinforcement-learning",
    "tafc",
    "cpp"
  ],
  "_stars": 11,
  "_contributors": [
    {
      "user": "yuki-961004",
      "count": 410,
      "uuid": 110153830
    },
    {
      "user": "helenliu0609",
      "count": 1,
      "uuid": 79847365
    }
  ],
  "_userbio": {
    "uuid": 110153830,
    "type": "user",
    "name": "yuki",
    "followers": 14
  },
  "_downloads": {
    "count": 407,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/binaryRL"
  },
  "_devurl": "https://github.com/yuki-961004/binaryrl",
  "_pkgdown": "https://yuki-961004.github.io/binaryRL/",
  "_searchresults": 6,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/binaryRL.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/yuki-961004/binaryrl",
  "_realowner": "yuki-961004",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.8.0",
      "date": "2025-05-13"
    },
    {
      "version": "0.8.3",
      "date": "2025-05-27"
    },
    {
      "version": "0.8.7",
      "date": "2025-06-10"
    },
    {
      "version": "0.8.9",
      "date": "2025-06-15"
    },
    {
      "version": "0.9.0",
      "date": "2025-07-08"
    },
    {
      "version": "0.9.7",
      "date": "2025-08-19"
    },
    {
      "version": "0.9.8",
      "date": "2025-10-28"
    },
    {
      "version": "0.9.9",
      "date": "2026-01-08"
    }
  ],
  "_exports": [
    "fit_p",
    "func_epsilon",
    "func_eta",
    "func_gamma",
    "func_logl",
    "func_pi",
    "func_tau",
    "optimize_para",
    "rcv_d",
    "recovery_data",
    "rpl_e",
    "RSTD",
    "run_m",
    "simulate_list",
    "TD",
    "Utility"
  ],
  "_datasets": [
    {
      "name": "Mason_2024_G1",
      "title": "Group 1 from Mason et al. (2024)",
      "object": "Mason_2024_G1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Subject",
        "Block",
        "Trial",
        "L_choice",
        "R_choice",
        "L_reward",
        "R_reward",
        "Sub_Choose",
        "Frame",
        "NetWorth",
        "RT"
      ],
      "rows": 45000,
      "table": true,
      "tojson": true
    },
    {
      "name": "Mason_2024_G2",
      "title": "Group 2 from Mason et al. (2024)",
      "object": "Mason_2024_G2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Subject",
        "Block",
        "Trial",
        "L_choice",
        "R_choice",
        "L_reward",
        "R_reward",
        "Sub_Choose",
        "Frame",
        "NetWorth",
        "RT"
      ],
      "rows": 45000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "fit_p",
      "title": "Step 3: Optimizing parameters to fit real data",
      "topics": [
        "fit_p"
      ]
    },
    {
      "page": "func_epsilon",
      "title": "Function: Epsilon Related",
      "topics": [
        "func_epsilon"
      ]
    },
    {
      "page": "func_eta",
      "title": "Function: Learning Rate",
      "topics": [
        "func_eta"
      ]
    },
    {
      "page": "func_gamma",
      "title": "Function: Utility Function",
      "topics": [
        "func_gamma"
      ]
    },
    {
      "page": "func_logl",
      "title": "Function: Loss Function",
      "topics": [
        "func_logl"
      ]
    },
    {
      "page": "func_pi",
      "title": "Function: Upper-Confidence-Bound",
      "topics": [
        "func_pi"
      ]
    },
    {
      "page": "func_tau",
      "title": "Function: Soft-Max Function",
      "topics": [
        "func_tau"
      ]
    },
    {
      "page": "Mason_2024_G1",
      "title": "Group 1 from Mason et al. (2024)",
      "topics": [
        "Mason_2024_G1"
      ]
    },
    {
      "page": "Mason_2024_G2",
      "title": "Group 2 from Mason et al. (2024)",
      "topics": [
        "Mason_2024_G2"
      ]
    },
    {
      "page": "optimize_para",
      "title": "Process: Optimizing Parameters",
      "topics": [
        "optimize_para"
      ]
    },
    {
      "page": "rcv_d",
      "title": "Step 2: Generating fake data for parameter and model recovery",
      "topics": [
        "rcv_d"
      ]
    },
    {
      "page": "recovery_data",
      "title": "Process: Recovering Fake Data",
      "topics": [
        "recovery_data"
      ]
    },
    {
      "page": "rpl_e",
      "title": "Step 4: Replaying the experiment with optimal parameters",
      "topics": [
        "rpl_e"
      ]
    },
    {
      "page": "RSTD",
      "title": "Model: RSTD",
      "topics": [
        "RSTD"
      ]
    },
    {
      "page": "run_m",
      "title": "Step 1: Building reinforcement learning model",
      "topics": [
        "run_m"
      ]
    },
    {
      "page": "simulate_list",
      "title": "Process: Simulating Fake Data",
      "topics": [
        "simulate_list"
      ]
    },
    {
      "page": "summary.binaryRL",
      "title": "S3method summary",
      "topics": [
        "summary.binaryRL"
      ]
    },
    {
      "page": "TD",
      "title": "Model: TD",
      "topics": [
        "TD"
      ]
    },
    {
      "page": "Utility",
      "title": "Model: Utility",
      "topics": [
        "Utility"
      ]
    }
  ],
  "_readme": "https://github.com/yuki-961004/binaryrl/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "digest",
    "doFuture",
    "doRNG",
    "foreach",
    "future",
    "future.apply",
    "globals",
    "iterators",
    "listenv",
    "parallelly",
    "progressr",
    "Rcpp",
    "rngtools"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 4.585460729508501,
  "_indexed": true,
  "_nocasepkg": "binaryrl",
  "_universes": [
    "yuki-961004"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:47.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/1b0e85fbfedfc1cf82968f2e396ee5f3a0478f7dea475433e848faee6665c93f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/940d10b4482db8dcee944d0aff81762b78f2f9bc06e532da3569bb8c828b4440",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/5607299018294cb11a29d2bc8b4c5474e21152f022555021c7ba2c9d2b072766",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/14a7d43bd65cc820b2801be1d8591ddd33d4526a4d07492b95da82ab2ea9c3d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:19.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/a0dca3ea4c8e77817538fb71da205d95389205081efa2b52fb9e65c49b456dfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-10-09T08:34:21.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/f95c8c499de9490a1e1f91e8d553c9978f14f13d82a9f45e2deb27c8012f2053",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:52.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/84f1f8f7b6095517c15f7bba06dd3f84700f6c8e9fb81cdfb22f377868c5acff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-10-09T08:33:57.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/266aa08b3ca71809b347380b04cd8b4f2ad58efc2384517575af3492717d60cc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.11",
      "date": "2026-10-09T08:32:45.000Z",
      "arch": "emscripten",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/2051006b811cc936eacfe24288faf9991e8fd07fa571cca7012f8ebc76299d60",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-10-09T08:34:22.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/a72c975375a87a5f1c1e8530dfcc8f971373fe8b1500c335106589948bb12ab0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-10-09T08:31:43.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/c6f63d184c892ad598ef47af4a30d8eb096464ebf2fe6ae07d9ade9dc3b8e4aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-10-09T08:31:52.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/7c3d1358ca3a97dd5ac01662e2cc238e9a913d183b65ce20e356245421943a75",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-10-09T08:34:11.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/620e177fc5c551c73b7f1c1bc44919c6d9868bc22c37bb7a6eb5ccfff3f2257d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-10-09T08:31:56.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "https://r2.ropensci.org/c2c02d0e0407b4d8f5c0ea7b4c2e697955e304f36e92f417354ac0c395af6362",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/37905100082"
    }
  ]
}