{
  "_id": "6a103203acfb0bcc41c9758d",
  "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-05-12 08:50:19 UTC",
    "User": "root"
  },
  "Author": "YuKi [aut, cre] (ORCID: <https://orcid.org/0009-0000-1378-1318>)",
  "MD5sum": "e96173bd331af45802c765778438a084",
  "_user": "yuki-961004",
  "_type": "src",
  "_file": "binaryRL_0.9.11.tar.gz",
  "_fileid": "e23a308f96b26557c07b5b8df443f9a86d2898ab626c2d8872939e822746f26e",
  "_filesize": 760880,
  "_sha256": "e23a308f96b26557c07b5b8df443f9a86d2898ab626c2d8872939e822746f26e",
  "_created": "2026-05-12T08:50:19.000Z",
  "_published": "2026-05-22T10:37:55.850Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77363097248,
      "time": 151,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939742242"
    },
    {
      "job": 77363097174,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939749259"
    },
    {
      "job": 77363097064,
      "time": 145,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939739977"
    },
    {
      "job": 77363097423,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939741885"
    },
    {
      "job": 77363097557,
      "time": 247,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939761507"
    },
    {
      "job": 77363097132,
      "time": 369,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939806728"
    },
    {
      "job": 77363097203,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939738082"
    },
    {
      "job": 77363097254,
      "time": 305,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939776265"
    },
    {
      "job": 77363096371,
      "time": 188,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939688440"
    },
    {
      "job": 77363096567,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158512611"
    },
    {
      "job": 77363097101,
      "time": 205,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6939760576"
    },
    {
      "job": 77363097299,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6939735150"
    },
    {
      "job": 77363097262,
      "time": 105,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6939727014"
    }
  ],
  "_buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 110153830
  },
  "_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-20",
      "n": 45
    },
    {
      "week": "2025-21",
      "n": 14
    },
    {
      "week": "2025-22",
      "n": 19
    },
    {
      "week": "2025-23",
      "n": 6
    },
    {
      "week": "2025-24",
      "n": 10
    },
    {
      "week": "2025-25",
      "n": 11
    },
    {
      "week": "2025-26",
      "n": 7
    },
    {
      "week": "2025-27",
      "n": 3
    },
    {
      "week": "2025-28",
      "n": 3
    },
    {
      "week": "2025-29",
      "n": 5
    },
    {
      "week": "2025-30",
      "n": 8
    },
    {
      "week": "2025-31",
      "n": 10
    },
    {
      "week": "2025-32",
      "n": 9
    },
    {
      "week": "2025-33",
      "n": 7
    },
    {
      "week": "2025-34",
      "n": 4
    },
    {
      "week": "2025-35",
      "n": 3
    },
    {
      "week": "2025-36",
      "n": 3
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-39",
      "n": 3
    },
    {
      "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.8.1",
      "date": "2025-05-15"
    },
    {
      "name": "v0.8.2",
      "date": "2025-05-16"
    },
    {
      "name": "v0.8.3",
      "date": "2025-05-23"
    },
    {
      "name": "v0.8.4",
      "date": "2025-05-27"
    },
    {
      "name": "v0.8.5",
      "date": "2025-06-03"
    },
    {
      "name": "v0.8.6",
      "date": "2025-06-09"
    },
    {
      "name": "v0.8.7",
      "date": "2025-06-10"
    },
    {
      "name": "v0.8.8",
      "date": "2025-06-13"
    },
    {
      "name": "v0.8.9",
      "date": "2025-06-13"
    },
    {
      "name": "v0.8.10",
      "date": "2025-06-21"
    },
    {
      "name": "v0.8.11",
      "date": "2025-06-25"
    },
    {
      "name": "v0.8.12",
      "date": "2025-06-27"
    },
    {
      "name": "v0.9.0",
      "date": "2025-07-02"
    },
    {
      "name": "v0.9.1",
      "date": "2025-07-16"
    },
    {
      "name": "v0.9.2",
      "date": "2025-07-20"
    },
    {
      "name": "v0.9.3",
      "date": "2025-07-23"
    },
    {
      "name": "v0.9.4",
      "date": "2025-08-01"
    },
    {
      "name": "v0.9.5",
      "date": "2025-08-05"
    },
    {
      "name": "v0.9.6",
      "date": "2025-08-14"
    },
    {
      "name": "v0.9.7",
      "date": "2025-08-15"
    },
    {
      "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": 9,
  "_contributors": [
    {
      "user": "yuki-961004",
      "count": 410,
      "uuid": 110153830
    },
    {
      "user": "helenliu0609",
      "count": 1,
      "uuid": 79847365
    }
  ],
  "_userbio": {
    "uuid": 110153830,
    "type": "user",
    "name": "yuki"
  },
  "_downloads": {
    "count": 567,
    "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.0",
  "_assets": [
    "extra/binaryRL.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 5.068185861746161,
  "_indexed": true,
  "_nocasepkg": "binaryrl",
  "_universes": [
    "yuki-961004"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-05-12T08:52:53.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "80a590a4b10c62e7d0e3d38e72ccce66813154626d578371af590b34e41d9869",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-05-12T08:53:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "6c2acd5978fb5fe8beb33101409a0b43bb4aa72e7ec6593165d0285544789111",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-05-12T08:52:48.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "221f2f14a8ec0bbf373469e917aff01cc6ab7269f70f453efc4c2685567d3cc3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.11",
      "date": "2026-05-12T08:52:50.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "1f89378fd3145f43338a7a66308e60243151394dcf410beae0f1f301372e3f44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-05-12T08:53:41.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "22f8e1a434526656ec515bbe2ed22c6dfa7266ae297dd5df1a16ee11fbd4c359",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-05-12T08:55:13.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "0c3eb4bd95635bbf3082f980b76d06dde892aaaf96639e433e3a8cb4566263b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-05-12T08:52:35.000Z",
      "arch": "aarch64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "1a222acb9f75bf78c8c35a16a5a15fa87512d4cbed91e7ccc2069863cff6388c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.11",
      "date": "2026-05-12T08:53:57.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "2dd9da6e3a16a4d8de5bdb92c9996d074ff3d64a65cf596ecee470649eeccd69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-05-12T08:53:03.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "272d8b1e42ae03ac4986087b62a182073401206c86bb3ebc0a6d21348d3c72f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-05-12T08:51:58.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "a8f2ed7ac8a3deea5f3bd387b05185773c7666b39328e4e13e80cbee2dae326a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.9.11",
      "date": "2026-05-12T08:51:39.000Z",
      "arch": "x86_64",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "66d8e0cdace0850e17e536e98f0e864b470ba67c99b1d0dfff03f5a4d3090b9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.11",
      "date": "2026-05-22T10:37:34.000Z",
      "arch": "emscripten",
      "commit": "6078e067425a24fac40a993f1eb375b44e2fe770",
      "fileid": "41a7175d31ec8478abd65531e7743d075e8b13b5c580e20687f5dd38d8d9f108",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yuki-961004/actions/runs/25723714577"
    }
  ]
}