{
  "_id": "6acdf594a14063b82c3ad8b2",
  "Package": "curtailment",
  "Title": "Finds Binary Outcome Designs Using Stochastic Curtailment",
  "Version": "1.0.0",
  "Authors@R": "person(given = \"Martin\",\nfamily = \"Law\",\nrole = c(\"aut\", \"cre\"),\nemail = \"martin.law@mrc-bsu.cam.ac.uk\",\ncomment = c(ORCID = \"0000-0001-9594-348X\"))",
  "Maintainer": "Martin Law <martin.law@mrc-bsu.cam.ac.uk>",
  "Description": "Finds single- and two-arm designs using stochastic\ncurtailment, as described by Law et al. (2022)\n<doi:10.1080/10543406.2021.2009498> and Law et al. (2021)\n<doi:10.1002/pst.2067> respectively. Designs can be\nsingle-stage or multi-stage. Non-stochastic curtailment is\npossible as a special case. Desired error-rates, maximum sample\nsize and lower and upper anticipated response rates are\ninputted and suitable designs are returned with operating\ncharacteristics. Stopping boundaries and visualisations are\nalso available. The package can find designs using other\napproaches, for example designs by Simon (1989)\n<doi:10.1016/0197-2456(89)90015-9> and Mander and Thompson\n(2010) <doi:10.1016/j.cct.2010.07.008>. Other features: compare\nand visualise designs using a weighted sum of expected sample\nsizes under the null and alternative hypotheses and maximum\nsample size; visualise any binary outcome design.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://github.com/martinlaw/curtailment",
  "BugReports": "https://github.com/martinlaw/curtailment/issues",
  "Config/testthat/edition": "3",
  "Repository": "https://martinlaw.r-universe.dev",
  "Date/Publication": "2025-11-14 18:30:40 UTC",
  "RemoteUrl": "https://github.com/martinlaw/curtailment",
  "RemoteRef": "HEAD",
  "RemoteSha": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 08:52:11 UTC",
    "User": "root"
  },
  "Author": "Martin Law [aut, cre] (ORCID: <https://orcid.org/0000-0001-9594-348X>)",
  "_user": "martinlaw",
  "_type": "src",
  "_file": "curtailment_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/e2c1ce5d6e8b56b635b710b1563a07c13613033076f781383c33d704ae0d39fe",
  "_filesize": 211087,
  "_sha256": "e2c1ce5d6e8b56b635b710b1563a07c13613033076f781383c33d704ae0d39fe",
  "_expires": "2027-01-21T09:10:42.000Z",
  "_created": "2026-10-13T08:52:11.000Z",
  "_published": "2026-10-13T09:10:44.751Z",
  "_buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115211971397,
      "time": 124,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11798944974"
    },
    {
      "job": 115211971319,
      "time": 121,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11800250385"
    },
    {
      "job": 115211971398,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11799533217"
    },
    {
      "job": 115211971337,
      "time": 162,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11799549437"
    },
    {
      "job": 115210853679,
      "time": 167,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11799437148"
    },
    {
      "job": 115211971440,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11799522330"
    },
    {
      "job": 115211971476,
      "time": 82,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "11799891504"
    },
    {
      "job": 115211971374,
      "time": 79,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "11799208499"
    },
    {
      "job": 115211971457,
      "time": 83,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11799019516"
    }
  ],
  "_upstream": "https://github.com/martinlaw/curtailment",
  "_commit": {
    "id": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
    "author": "martinlaw <martin.law@mrc-bsu.cam.ac.uk>",
    "committer": "martinlaw <martin.law@mrc-bsu.cam.ac.uk>",
    "message": "updated README for 1.0.0\n",
    "time": 1763145040
  },
  "_maintainer": {
    "name": "Martin Law",
    "email": "martin.law@mrc-bsu.cam.ac.uk",
    "login": "martinlaw",
    "description": "",
    "uuid": 6154013,
    "orcid": "0000-0001-9594-348X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "ggthemes",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "pkgcond",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "martinlaw",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v1.0.0",
      "date": "2025-11-14"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "martinlaw",
      "count": 118,
      "uuid": 6154013
    }
  ],
  "_userbio": {
    "uuid": 6154013,
    "type": "user",
    "name": "martinlaw",
    "followers": 4
  },
  "_downloads": {
    "count": 307,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/curtailment"
  },
  "_devurl": "https://github.com/martinlaw/curtailment",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/curtailment.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/martinlaw/curtailment",
  "_realowner": "martinlaw",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2021-08-05"
    },
    {
      "version": "0.2.0",
      "date": "2022-08-05"
    },
    {
      "version": "0.2.6",
      "date": "2023-10-25"
    }
  ],
  "_exports": [
    "drawDiagram",
    "drawDiagramGeneric",
    "find2stageDesigns",
    "find2stageThetaF",
    "findLoss",
    "findNSCdesigns",
    "findSCdesigns",
    "findSingleSimonDesign",
    "plotByWeight",
    "singlearmDesign",
    "twoarmDesign"
  ],
  "_help": [
    {
      "page": "drawDiagram",
      "title": "drawDiagram",
      "topics": [
        "drawDiagram"
      ]
    },
    {
      "page": "drawDiagramGeneric",
      "title": "drawDiagramGeneric",
      "topics": [
        "drawDiagramGeneric"
      ]
    },
    {
      "page": "find2stageDesigns",
      "title": "Find two-stage designs",
      "topics": [
        "find2stageDesigns"
      ]
    },
    {
      "page": "find2stageThetaF",
      "title": "Find conditional power for futility",
      "topics": [
        "find2stageThetaF"
      ]
    },
    {
      "page": "findLoss",
      "title": "Find loss scores for a set of single-arm designs",
      "topics": [
        "findLoss"
      ]
    },
    {
      "page": "findNSCdesigns",
      "title": "findNSCdesigns",
      "topics": [
        "findNSCdesigns"
      ]
    },
    {
      "page": "findSCdesigns",
      "title": "findSCDesigns",
      "topics": [
        "findSCdesigns"
      ]
    },
    {
      "page": "findSingleSimonDesign",
      "title": "Find a single Simon design",
      "topics": [
        "findSingleSimonDesign"
      ]
    },
    {
      "page": "plot.curtailment_single",
      "title": "plot",
      "topics": [
        "plot.curtailment_single"
      ]
    },
    {
      "page": "plotByWeight",
      "title": "plotByWeight",
      "topics": [
        "plotByWeight"
      ]
    },
    {
      "page": "singlearmDesign",
      "title": "Find single-arm trials using stochastic curtailment",
      "topics": [
        "singlearmDesign"
      ]
    },
    {
      "page": "twoarmDesign",
      "title": "Find two-arm trial designs that use stochastic curtailment",
      "topics": [
        "twoarmDesign"
      ]
    }
  ],
  "_readme": "https://github.com/martinlaw/curtailment/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "ggplot2",
    "ggthemes",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgcond",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "curtailment",
  "_universes": [
    "martinlaw"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-13T08:54:04.000Z",
      "distro": "resolute",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/a429effc5d0b90f590b3e16de75043e85319c0c5c455b361c15e6f1807b2262b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-13T08:54:01.000Z",
      "distro": "resolute",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/c333840898c2208d719d8e2416499cfce38bf41d6645904200bb85add63c4358",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-13T09:01:51.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/a68b3e14c0af8b02d3310f07f690b9766adb7201f8c7d4939982ad8c9799d731",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-13T09:09:44.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/5182f7b9f9cfc571130baeb52abf60fb2d6303b19e702146fd060e15270bfb05",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-13T08:54:10.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/af7834b9712153f6f6a43b32bdaaac9aacc8cd4ec71cddcc0c75e25e2cd2f374",
      "status": "success",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-13T08:53:15.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/e20336ce153e4ee498b340fe2b33948e7ffb83c782cff0d22af3b3683f789220",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-13T08:53:14.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/f822bcf5a53c51cefc30454c7910dd24bed196dce42c1f3260694a6aa3f8421c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-13T08:53:29.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "https://r2.ropensci.org/e45e6a0510ed7e1015934de367c99eb0cf6a1c7a63f12d69f3aa00f4df87fa14",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/38371916216"
    }
  ]
}