{
  "_id": "6a1d42351d7bb097a0a41629",
  "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-06-01 08:23:23 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>",
  "MD5sum": "49f527f8f5df5267c9f79be6d86abca2",
  "_user": "matsuurakentaro",
  "_type": "src",
  "_file": "RLoptimal_1.2.2.tar.gz",
  "_fileid": "00479d499602ee69899e17c4677254f6f015cbc8c8c4ac48510f78bacdc21b02",
  "_filesize": 253705,
  "_sha256": "00479d499602ee69899e17c4677254f6f015cbc8c8c4ac48510f78bacdc21b02",
  "_created": "2026-06-01T08:23:23.000Z",
  "_published": "2026-06-01T08:26:29.955Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78813477222,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326711397"
    },
    {
      "job": 78813477244,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326711561"
    },
    {
      "job": 78813477366,
      "time": 141,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7326705378"
    },
    {
      "job": 78813477207,
      "time": 147,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326708046"
    },
    {
      "job": 78813015527,
      "time": 187,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326668908"
    },
    {
      "job": 78813477191,
      "time": 117,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326705469"
    },
    {
      "job": 78813477231,
      "time": 86,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326696288"
    },
    {
      "job": 78813477202,
      "time": 126,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7326707990"
    },
    {
      "job": 78813477172,
      "time": 76,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326693185"
    }
  ],
  "_buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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": [
    {
      "week": "2025-40",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.2.2",
      "date": "2025-10-02"
    }
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "hoxo-m",
      "count": 103,
      "uuid": 7479163
    },
    {
      "user": "matsuurakentaro",
      "count": 88,
      "uuid": 11885625
    }
  ],
  "_userbio": {
    "uuid": 11885625,
    "type": "user",
    "name": "Kentaro Matsuura",
    "description": "Email: matsuurakentaro55[at]gmail.com"
  },
  "_downloads": {
    "count": 133,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RLoptimal"
  },
  "_devurl": "https://github.com/matsuurakentaro/rloptimal",
  "_searchresults": 22,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/RLoptimal.html",
    "manual.pdf"
  ],
  "_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",
    "RColorBrewer",
    "Rcpp",
    "RcppTOML",
    "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.643452676486188,
  "_indexed": true,
  "_nocasepkg": "rloptimal",
  "_universes": [
    "matsuurakentaro"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:40.000Z",
      "distro": "noble",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "48f5cef01460239520e4cfe3d503f3e49e51e20de81eadb1855d78544cf46d86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:41.000Z",
      "distro": "noble",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "28bee250a17dcc0f1f5000ebc40f324140e9a830dd7141eccecd11abe9a1aac4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:25.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "3d2a5892744e330872509ed58da899bf0b6185ec1d4fbcfeeeafa4e1e595c2f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:34.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "63d2df3cadc72a8798ad69fe6c5ceb1fb14cbdbacee4a35b049fbaaea5427b9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:37.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "d7c4eff22c2199da2e448edff6d8545f8d06a672b49d3095e623fdcbbc90d974",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-01T08:24:48.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "c6da8cfbc2e1f7ae7a16f3ee98407895619454e3b218c00ce299b777db2de132",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-01T08:25:27.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "27a10f27ecc6697668f52ed8a655c3fc66b8b74c20418065ad1c54438cecc4f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.2",
      "date": "2026-06-01T08:24:37.000Z",
      "commit": "d594feee850dbc420c45091a6f1888b0304941b0",
      "fileid": "35072b65ea83388676d7c78283a00143cfce40b32aeb2e9b8c336fd852a69d9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matsuurakentaro/actions/runs/26743474600"
    }
  ]
}