{
  "_id": "6ad336872c5c76d3dd0c9ebb",
  "Package": "RLoptimal",
  "Type": "Package",
  "Title": "Optimal Adaptive Allocation Using Deep Reinforcement Learning",
  "Version": "1.2.2",
  "Authors@R": "c(\nperson(\"Kentaro\", \"Matsuura\", , \"matsuurakentaro55@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0000-0001-5262-055X\")),\nperson(\"Koji\", \"Makiyama\", , \"hoxo.smile@gmail.com\", role = c(\"aut\", \"ctb\")))",
  "Description": "An implementation to compute an optimal adaptive\nallocation rule using deep reinforcement learning in a\ndose-response study (Matsuura et al. (2022)\n<doi:10.1002/sim.9247>). The adaptive allocation rule can\ndirectly optimize a performance metric, such as power, accuracy\nof the estimated target dose, or mean absolute error over the\nestimated dose-response curve.",
  "URL": "https://github.com/MatsuuraKentaro/RLoptimal",
  "BugReports": "https://github.com/MatsuuraKentaro/RLoptimal/issues",
  "VignetteBuilder": "knitr",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Collate": "'timer.R' 'train_algo.R' 'utils.R' 'allocation_rule.R'\n'generate_setup_code.R' 'rl_dnn_config.R' 'rl_config_set.R'\n'learn_allocation_rule.R' 'setup_python.R' 'zzz.R'\n'simulate_one_trial.R' 'adjust_significance_level.R'",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libpng-dev python3",
  "Repository": "https://matsuurakentaro.r-universe.dev",
  "Date/Publication": "2025-10-02 22:55:52 UTC",
  "RemoteUrl": "https://github.com/matsuurakentaro/rloptimal",
  "RemoteRef": "HEAD",
  "RemoteSha": "d594feee850dbc420c45091a6f1888b0304941b0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-17 08:38:53 UTC",
    "User": "root"
  },
  "Author": "Kentaro Matsuura [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-5262-055X>),\nKoji Makiyama [aut, ctb]",
  "Maintainer": "Kentaro Matsuura <matsuurakentaro55@gmail.com>",
  "_user": "matsuurakentaro",
  "_type": "src",
  "_file": "RLoptimal_1.2.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/a0fa5e46fcb162030d555f208bbaf8a2a1fe5b7325fe4fc81e1fcc1ac6f0081d",
  "_filesize": 255280,
  "_sha256": "a0fa5e46fcb162030d555f208bbaf8a2a1fe5b7325fe4fc81e1fcc1ac6f0081d",
  "_expires": "2027-01-25T08:49:02.000Z",
  "_created": "2026-10-17T08:38:53.000Z",
  "_published": "2026-10-17T08:49:10.850Z",
  "_buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117354439543,
      "time": 108,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12095936224"
    },
    {
      "job": 117354439549,
      "time": 107,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12096130185"
    },
    {
      "job": 117354439560,
      "time": 229,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12095971685"
    },
    {
      "job": 117354439514,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12095662673"
    },
    {
      "job": 117353895460,
      "time": 178,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12096085156"
    },
    {
      "job": 117354439525,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12095647489"
    },
    {
      "job": 117354439562,
      "time": 84,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12096055341"
    },
    {
      "job": 117354439641,
      "time": 68,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12095224701"
    },
    {
      "job": 117354439527,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12095911332"
    }
  ],
  "_upstream": "https://github.com/matsuurakentaro/rloptimal",
  "_commit": {
    "id": "d594feee850dbc420c45091a6f1888b0304941b0",
    "author": "Kentaro Matsuura <matsuurakentaro55@gmail.com>",
    "committer": "Kentaro Matsuura <matsuurakentaro55@gmail.com>",
    "message": "for CRAN update\n",
    "time": 1759445752
  },
  "_maintainer": {
    "name": "Kentaro Matsuura",
    "email": "matsuurakentaro55@gmail.com",
    "login": "matsuurakentaro",
    "twitter": "@hankagosa",
    "description": "Email: matsuurakentaro55[at]gmail.com",
    "uuid": 11885625,
    "orcid": "0000-0001-5262-055X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "DoseFinding",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "reticulate",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zip",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "matsuurakentaro",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "hoxo-m",
      "count": 103,
      "uuid": 7479163
    },
    {
      "user": "matsuurakentaro",
      "count": 88,
      "uuid": 11885625
    }
  ],
  "_userbio": {
    "uuid": 11885625,
    "type": "user",
    "name": "Kentaro Matsuura",
    "followers": 140,
    "description": "Email: matsuurakentaro55[at]gmail.com"
  },
  "_downloads": {
    "count": 223,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RLoptimal"
  },
  "_devurl": "https://github.com/matsuurakentaro/rloptimal",
  "_searchresults": 23,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/RLoptimal.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/matsuurakentaro/rloptimal",
  "_realowner": "matsuurakentaro",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2024-10-03"
    },
    {
      "version": "1.1.0",
      "date": "2024-11-03"
    },
    {
      "version": "1.1.1",
      "date": "2024-11-21"
    },
    {
      "version": "1.2.0",
      "date": "2024-12-21"
    },
    {
      "version": "1.2.1",
      "date": "2025-01-13"
    },
    {
      "version": "1.2.2",
      "date": "2025-10-03"
    }
  ],
  "_exports": [
    "adjust_significance_level",
    "AllocationRule",
    "clean_python_settings",
    "learn_allocation_rule",
    "rl_config_set",
    "rl_dnn_config",
    "setup_python",
    "simulate_one_trial"
  ],
  "_help": [
    {
      "page": "adjust_significance_level",
      "title": "Adjust Significance Level on a Simulation Basis",
      "topics": [
        "adjust_significance_level"
      ]
    },
    {
      "page": "AllocationRule",
      "title": "Allocation Rule Class",
      "topics": [
        "AllocationRule"
      ]
    },
    {
      "page": "clean_python_settings",
      "title": "Clean the Python Virtual Environment",
      "topics": [
        "clean_python_settings"
      ]
    },
    {
      "page": "learn_allocation_rule",
      "title": "Build an Optimal Adaptive Allocation Rule using Reinforcement Learning",
      "topics": [
        "learn_allocation_rule"
      ]
    },
    {
      "page": "rl_config_set",
      "title": "Configuration of Reinforcement Learning",
      "topics": [
        "rl_config_set"
      ]
    },
    {
      "page": "rl_dnn_config",
      "title": "DNN Configuration for Reinforcement Learning",
      "topics": [
        "rl_dnn_config"
      ]
    },
    {
      "page": "setup_python",
      "title": "Setting up a Python Virtual Environment",
      "topics": [
        "setup_python"
      ]
    },
    {
      "page": "simulate_one_trial",
      "title": "Simulate One Trial Using an Obtained Optimal Adaptive Allocation Rule",
      "topics": [
        "simulate_one_trial"
      ]
    }
  ],
  "_pkglogo": "https://github.com/matsuurakentaro/rloptimal/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/matsuurakentaro/rloptimal/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "DoseFinding",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "here",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "mvtnorm",
    "png",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppTOML",
    "Rdpack",
    "reticulate",
    "rlang",
    "rprojroot",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr",
    "zip"
  ],
  "_vignettes": [
    {
      "source": "RLoptimal.Rmd",
      "filename": "RLoptimal.html",
      "title": "Optimal Adaptive Allocation Using Deep Reinforcement Learning",
      "author": "Kentaro Matsuura",
      "engine": "knitr::rmarkdown",
      "headings": [
        "RLoptimal",
        "Overview",
        "Installation",
        "Example",
        "Build dose-response models for MCPMod",
        "Learn an allocation rule",
        "How to use the allocation rule",
        "Simulation-based adjustment of the significance level",
        "How to evaluate the allocation rule",
        "Tips",
        "Dose-response models for reinforcement learning",
        "Binary outcome",
        "How to use Allocation Rule Class",
        "Save the allocation rule",
        "Inputs of learn_allocation_rule function",
        "Obtain returns during reinforcement learning",
        "Resume learning",
        "Use checkpoint"
      ],
      "created": "2024-09-22 12:08:28",
      "modified": "2024-12-01 06:43:01",
      "commits": 11
    }
  ],
  "_score": 4.662757831681574,
  "_indexed": true,
  "_nocasepkg": "rloptimal",
  "_universes": [
    "matsuurakentaro"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-17T08:40:41.000Z",
      "distro": "resolute",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/d488fb847b5331a2f7e17175a7d8c28eabd400287e623218800d4ada3ca438c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-10-17T08:40:44.000Z",
      "distro": "resolute",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/09be5bb32a904c8e3667b7a729b53fe5ec0e26bf3036296d448db450d7b69618",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-17T08:47:11.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/9d0fa4ccabe291d0974fabc82809342657865b702a7f6e1fdc3bc9507e476c32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-10-17T08:41:53.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/db9e409ad4ea4b8506f55e1550135f2c8af01d128350e4831f44e48e4847c5c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-10-17T08:40:48.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/3582642a31ec4858b237a5edf31a44725b2ebb9c81a1581200ce4f1fb6ca4a30",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-17T08:40:11.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/25f12feec8afa098d40728e2c94c8dfb643f1d3a9934507c9f686763e9a811f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-17T08:39:58.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/b1a61754e3b6882a6f214afae35646270cd4117d8021903875ceec1f8d546094",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-10-17T08:39:59.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "https://r2.ropensci.org/e5d4186a801ba4232c8e26454973d7ef2f6ecad4095d08dbe227bb5e4febd587",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/39017962474"
    }
  ]
}