{
  "_id": "6a1f1e66b401979e7341fe34",
  "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",
  "Config/pak/sysreqs": "libicu-dev",
  "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-05-16 08:24:38 UTC",
    "User": "root"
  },
  "Author": "Martin Law [aut, cre] (ORCID: <https://orcid.org/0000-0001-9594-348X>)",
  "MD5sum": "814e0a90445276795748abe60ad71e41",
  "_user": "martinlaw",
  "_type": "src",
  "_file": "curtailment_1.0.0.tar.gz",
  "_fileid": "82cb8976a456eabc22b4e810258c39685dfded7220d22a0a2de3d1eb1ee8ad41",
  "_filesize": 212061,
  "_sha256": "82cb8976a456eabc22b4e810258c39685dfded7220d22a0a2de3d1eb1ee8ad41",
  "_created": "2026-05-16T08:24:38.000Z",
  "_published": "2026-06-02T18:18:14.864Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79141359241,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7031944913"
    },
    {
      "job": 79141359682,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7031942972"
    },
    {
      "job": 79141359215,
      "time": 149,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7031943589"
    },
    {
      "job": 79141359908,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7031941939"
    },
    {
      "job": 79141358527,
      "time": 180,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031929687"
    },
    {
      "job": 79141358595,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366229113"
    },
    {
      "job": 79141359732,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7031939476"
    },
    {
      "job": 79141359806,
      "time": 112,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7031940238"
    },
    {
      "job": 79141359286,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7031938895"
    }
  ],
  "_buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 6154013,
    "orcid": "0000-0001-9594-348X"
  },
  "_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"
  },
  "_downloads": {
    "count": 235,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/curtailment"
  },
  "_devurl": "https://github.com/martinlaw/curtailment",
  "_searchresults": 6,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/curtailment.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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",
    "stringi",
    "stringr",
    "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-05-16T08:27:04.000Z",
      "distro": "noble",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "8065fc8d7a3c368c701362e325c0a86a8bf7358539428003400123290fb021ce",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-16T08:26:47.000Z",
      "distro": "noble",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "4ff9bac282c84316bb7d2422c51c578d9cdc4eca5d27c1e3e7d641fd72b9ea67",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-16T08:27:01.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "aac3aed8184ea1fb86996edff38c80b5c664aab422abc5c024c8225b84dc1d9d",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-16T08:26:48.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "50cb1d9d55a86e358269e0f0558d3770b0bd8354ad517dff50ff7dadf1f9df87",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-16T08:25:59.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "ae28f4c7bf237e5fa626bbfd1b630ffb44e9b48e5dd68ee52219cde6a69dc789",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-16T08:26:05.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "e4eeef7f5d2af93f3b6209e4417c976e3f604af80f634975179e94683fcf3b7a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-16T08:25:52.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "cc23da680bc47cfef49b8818679f27403e3a4ff5e2c38d55c365372ac1cb49e8",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-02T18:17:58.000Z",
      "commit": "5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6",
      "fileid": "bad71b473e43056a39f1ea834efbcc393fe2f95f070ddf9c87bb61f3f4743f0d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/martinlaw/actions/runs/25957195654"
    }
  ]
}