{
  "_id": "6ac771adde46216d5edcff31",
  "Package": "selecta",
  "Type": "Package",
  "Title": "Declarative EQUATOR-Style Flow Diagrams for Clinical Studies",
  "Version": "0.6.1",
  "Authors@R": "c(\nperson(\ngiven = c(\"Paul\", \"Hsin-ti\"),\nfamily = \"McClelland\",\nrole = c(\"aut\", \"cre\", \"cph\"),\nemail = \"PaulHMcClelland@protonmail.com\",\ncomment = c(ORCID = \"0000-0002-3119-6531\")\n))",
  "Description": "Build EQUATOR-style flowcharts for clinical studies by\nsequentially defining inclusion and exclusion criteria, study\narms, and endpoints. The pipe-friendly API supports CONSORT\n(randomized trials), STROBE (observational cohorts), STARD\n(diagnostic accuracy), PRISMA (systematic reviews), and MOOSE\n(observational meta-analysis) diagram layouts, as well as\nmulti-source convergence, split-and-recombine, factorial, and\nhybrid topologies. Diagrams are rendered via 'grid' graphics in\nboth data-driven (automatic counting) and manual-count modes,\nwith optional 'DiagrammeR'/'Graphviz' output.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://phmcc.codefloe.page/selecta,\nhttps://codefloe.com/phmcc/selecta,\nhttps://github.com/phmcc/selecta",
  "BugReports": "https://github.com/phmcc/selecta/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://phmcc.r-universe.dev",
  "Date/Publication": "2026-10-08 04:09:28 UTC",
  "RemoteUrl": "https://github.com/phmcc/selecta",
  "RemoteRef": "HEAD",
  "RemoteSha": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-08 09:46:25 UTC",
    "User": "root"
  },
  "Author": "Paul Hsin-ti McClelland [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-3119-6531>)",
  "Maintainer": "Paul Hsin-ti McClelland <PaulHMcClelland@protonmail.com>",
  "_user": "phmcc",
  "_type": "src",
  "_file": "selecta_0.6.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/cf851d4c04096ff0ec7a291fa46be64b8703b038017b324f6e5d3deffe0c8f9b",
  "_filesize": 2379222,
  "_sha256": "cf851d4c04096ff0ec7a291fa46be64b8703b038017b324f6e5d3deffe0c8f9b",
  "_expires": "2027-01-16T10:34:19.000Z",
  "_created": "2026-10-08T09:46:25.000Z",
  "_published": "2026-10-08T10:34:21.319Z",
  "_buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113250544864,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11540834017"
    },
    {
      "job": 113250544934,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11540973703"
    },
    {
      "job": 113250544941,
      "time": 202,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11543393110"
    },
    {
      "job": 113250545037,
      "time": 125,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11543880568"
    },
    {
      "job": 113249379344,
      "time": 181,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11541497094"
    },
    {
      "job": 113250544970,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11541940196"
    },
    {
      "job": 113250545053,
      "time": 112,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11540754011"
    },
    {
      "job": 113250545044,
      "time": 99,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11541502239"
    },
    {
      "job": 113250545004,
      "time": 86,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11541128195"
    }
  ],
  "_upstream": "https://github.com/phmcc/selecta",
  "_commit": {
    "id": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
    "author": "Paul H. McClelland <PaulHMcClelland@protonmail.com>",
    "committer": "Paul H. McClelland <PaulHMcClelland@protonmail.com>",
    "message": "Update URLs\n",
    "time": 1791432568
  },
  "_maintainer": {
    "name": "Paul Hsin-ti McClelland",
    "email": "paulhmcclelland@protonmail.com",
    "login": "phmcc",
    "description": "",
    "uuid": 62819679,
    "orcid": "0000-0002-3119-6531"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "ragg",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "phmcc",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-25",
      "n": 5
    },
    {
      "week": "2026-34",
      "n": 2
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "phmcc",
      "count": 15,
      "uuid": 62819679
    }
  ],
  "_userbio": {
    "uuid": 62819679,
    "type": "user",
    "name": "Paul Hsin-ti McClelland",
    "followers": 1
  },
  "_downloads": {
    "count": 406,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/selecta"
  },
  "_devurl": "https://github.com/phmcc/selecta",
  "_pkgdown": "https://phmcc.codefloe.page/selecta",
  "_searchresults": 24,
  "_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/selecta.html"
  ],
  "_homeurl": "https://github.com/phmcc/selecta",
  "_realowner": "phmcc",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.6.0",
      "date": "2026-06-24"
    },
    {
      "version": "0.6.1",
      "date": "2026-08-22"
    }
  ],
  "_exports": [
    "allocate",
    "assess",
    "cohort",
    "cohorts",
    "combine",
    "endpoint",
    "enroll",
    "exclude",
    "flowchart",
    "flowsave",
    "phase",
    "recdims",
    "sources",
    "stratify"
  ],
  "_datasets": [
    {
      "name": "selectaex0",
      "title": "Simulated Observational Cohort (No Arms)",
      "object": "selectaex0",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patient_id",
        "site",
        "enrollment_date",
        "age",
        "has_consent",
        "prior_surgery",
        "bmi",
        "hba1c",
        "eligible",
        "exclusion_reason",
        "is_duplicate",
        "lost_to_followup",
        "followup_loss_reason",
        "completed_study"
      ],
      "rows": 3000,
      "table": true,
      "tojson": true
    },
    {
      "name": "selectaex2",
      "title": "Simulated Two-Arm Randomized Trial",
      "object": "selectaex2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patient_id",
        "site",
        "screening_date",
        "age",
        "has_consent",
        "prior_chemo",
        "ecog",
        "creatinine",
        "eligible",
        "exclusion_reason",
        "is_duplicate",
        "treatment",
        "received_treatment",
        "discontinued",
        "discontinuation_reason",
        "completed_study",
        "protocol_violation"
      ],
      "rows": 2400,
      "table": true,
      "tojson": true
    },
    {
      "name": "selectaex3",
      "title": "Simulated Three-Arm Randomized Trial",
      "object": "selectaex3",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patient_id",
        "site",
        "screening_date",
        "age",
        "has_consent",
        "prior_chemo",
        "ecog",
        "creatinine",
        "eligible",
        "exclusion_reason",
        "is_duplicate",
        "treatment",
        "received_treatment",
        "discontinued",
        "discontinuation_reason",
        "completed_study",
        "protocol_violation"
      ],
      "rows": 2400,
      "table": true,
      "tojson": true
    },
    {
      "name": "selectaex6",
      "title": "Simulated Six-Arm Dose-Finding Trial",
      "object": "selectaex6",
      "class": [
        "data.frame"
      ],
      "fields": [
        "patient_id",
        "site",
        "screening_date",
        "age",
        "has_consent",
        "prior_therapy",
        "ecog",
        "creatinine",
        "eligible",
        "exclusion_reason",
        "is_duplicate",
        "treatment",
        "received_treatment",
        "discontinued",
        "discontinuation_reason",
        "completed_study"
      ],
      "rows": 3600,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "assess",
      "title": "Record an Assessment or Procedure Step",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "assess"
      ]
    },
    {
      "page": "cohort",
      "title": "Extract the Final Cohort",
      "concept": [
        "cohort extraction functions"
      ],
      "topics": [
        "cohort"
      ]
    },
    {
      "page": "cohorts",
      "title": "Extract Cohorts at Every Stage",
      "concept": [
        "cohort extraction functions"
      ],
      "topics": [
        "cohorts"
      ]
    },
    {
      "page": "combine",
      "title": "Merge Parallel Streams",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "combine"
      ]
    },
    {
      "page": "endpoint",
      "title": "Mark the Final Analysis Endpoint",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "endpoint"
      ]
    },
    {
      "page": "enroll",
      "title": "Initialize an Enrollment Flow",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "enroll"
      ]
    },
    {
      "page": "exclude",
      "title": "Exclude Participants by Criteria",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "exclude"
      ]
    },
    {
      "page": "flowchart",
      "title": "Render an Enrollment Flowchart",
      "concept": [
        "flowchart output functions"
      ],
      "topics": [
        "flowchart",
        "plot.selecta"
      ]
    },
    {
      "page": "flowsave",
      "title": "Save Diagram to File",
      "concept": [
        "flowchart output functions"
      ],
      "topics": [
        "flowsave"
      ]
    },
    {
      "page": "phase",
      "title": "Label a Phase of the Enrollment Flow",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "phase"
      ]
    },
    {
      "page": "print.selecta",
      "title": "Print an Enrollment Flow Summary",
      "concept": [
        "flowchart output functions"
      ],
      "topics": [
        "print.selecta"
      ]
    },
    {
      "page": "recdims",
      "title": "Recommended Figure Dimensions",
      "concept": [
        "flowchart output functions"
      ],
      "topics": [
        "recdims"
      ]
    },
    {
      "page": "selectaex0",
      "title": "Simulated Observational Cohort (No Arms)",
      "topics": [
        "selectaex0"
      ]
    },
    {
      "page": "selectaex2",
      "title": "Simulated Two-Arm Randomized Trial",
      "topics": [
        "selectaex2"
      ]
    },
    {
      "page": "selectaex3",
      "title": "Simulated Three-Arm Randomized Trial",
      "topics": [
        "selectaex3"
      ]
    },
    {
      "page": "selectaex6",
      "title": "Simulated Six-Arm Dose-Finding Trial",
      "topics": [
        "selectaex6"
      ]
    },
    {
      "page": "sources",
      "title": "Initialize a Multi-Source Flow",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "sources"
      ]
    },
    {
      "page": "stratify",
      "title": "Split into Parallel Study Arms or Strata",
      "concept": [
        "flow construction functions"
      ],
      "topics": [
        "allocate",
        "stratify"
      ]
    },
    {
      "page": "summary.selecta",
      "title": "Summarize an Enrollment Flow",
      "concept": [
        "flowchart output functions"
      ],
      "topics": [
        "summary.selecta"
      ]
    }
  ],
  "_readme": "https://github.com/phmcc/selecta/raw/HEAD/README.md",
  "_rundeps": [
    "data.table"
  ],
  "_vignettes": [
    {
      "source": "advanced_workflows.Rmd",
      "filename": "advanced_workflows.html",
      "title": "Advanced Workflows",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "Factorial (Multi-Split) Designs",
        "Example 1: A Two-by-Two Factorial Trial",
        "Example 2: Larger Factorial Grids",
        "Example 3: Asymmetric Factorial Designs",
        "Example 4: Factorial Designs from Row-Level Data",
        "Example 5: Pooling Twice into a Single Cohort",
        "Example 6: Factorial Layouts via the DOT Engine",
        "Hierarchical (Nested) Exclusion Reasons",
        "Example 7: Manual Nested Reasons",
        "Example 8: Two-Column Reasons from Row-Level Data",
        "Example 9: Nested Reasons via the DOT Engine",
        "Visual Customization",
        "Example 10: Custom Font Sizes",
        "Example 11: Custom Colors",
        "Example 12: Font Family",
        "Example 13: Regional Number Formatting",
        "Global Options",
        "Multi-Line Phase Labels",
        "Example 14: Wrapped Phase Labels",
        "Example 15: Explicit Line Breaks",
        "Further Reading"
      ],
      "created": "2026-06-18 02:48:56",
      "modified": "2026-06-19 07:22:58",
      "commits": 2
    },
    {
      "source": "enrollment_diagrams.Rmd",
      "filename": "enrollment_diagrams.html",
      "title": "Enrollment Diagrams",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "Operating Modes",
        "CONSORT — Randomized Controlled Trials",
        "Example 1: Data-Driven Two-Arm Trial",
        "Example 2: Data-Driven Three-Arm Trial",
        "Example 3: Manual Mode",
        "Example 4: Count-First Display Mode",
        "STROBE — Observational Cohort Studies",
        "Example 5: Single-Arm Cohort",
        "Example 6: Exposure-Stratified Cohort",
        "STARD — Diagnostic Accuracy Studies",
        "Example 7: Index Test and Reference Standard",
        "Cohort Extraction",
        "Inspecting the Diagram Structure",
        "Saving to File",
        "Further Reading"
      ],
      "created": "2026-06-18 02:48:56",
      "modified": "2026-06-19 07:22:58",
      "commits": 2
    },
    {
      "source": "graphviz_export.Rmd",
      "filename": "graphviz_export.html",
      "title": "Graphviz Export",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "Generating DOT Output",
        "Example 1: Basic DOT String",
        "Example 2: Multi-Arm Trial (CONSORT)",
        "Example 3: Systematic Review (PRISMA)",
        "Customizing DOT Output",
        "Example 4: Changing Node Colors",
        "Example 5: Count-First Layout",
        "Example 6: Rich (HTML) Formatting",
        "Example 7: Times Typography",
        "Example 8: Adding Graphviz Attributes",
        "Font Formatting Notes",
        "The plot() Method",
        "Bullets vs. Indentation",
        "Saving to File",
        "Advanced Rendering Options",
        "Saving as HTML",
        "Saving as PNG",
        "Choosing Between Engines",
        "Further Reading"
      ],
      "created": "2026-06-18 02:48:56",
      "modified": "2026-06-19 07:22:58",
      "commits": 2
    },
    {
      "source": "split_recombine.Rmd",
      "filename": "split_recombine.html",
      "title": "Split-and-Recombine Diagrams",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "Manual Entry",
        "Example 1: Screening Validation Study",
        "Example 2: Per-Stratum Exclusion Reasons",
        "Data-Driven Flow",
        "Example 3: Data-Driven Split and Recombine",
        "Cohort Extraction",
        "Re-Splitting after Recombination",
        "Example 4: Risk Stratification Followed by Randomization",
        "Design Considerations",
        "Saving to File",
        "Further Reading"
      ],
      "created": "2026-06-18 02:48:56",
      "modified": "2026-06-19 07:22:58",
      "commits": 2
    },
    {
      "source": "systematic_reviews.Rmd",
      "filename": "systematic_reviews.html",
      "title": "Systematic Reviews",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "PRISMA — Three-Column Layout",
        "Example 1: Full Three-Column PRISMA Diagram",
        "Example 2: Three-Column Count-First Layout",
        "PRISMA — Two-Column Layout",
        "Example 3: Two-Column Sources",
        "PRISMA — Single-Column Layout",
        "Example 4: Flat Source List",
        "MOOSE — Observational Meta-Analysis",
        "Example 5: MOOSE Flow Diagram",
        "Source Group Structure",
        "Saving to File",
        "Further Reading"
      ],
      "created": "2026-06-18 02:48:56",
      "modified": "2026-06-19 07:22:58",
      "commits": 2
    }
  ],
  "_score": 5.778151250383644,
  "_indexed": true,
  "_nocasepkg": "selecta",
  "_universes": [
    "phmcc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-08T09:48:27.000Z",
      "distro": "resolute",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/6cbd5920e35abf23a5c15c9557926d1cabd8a839471c0b7f15fc51f3e4d5d60d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-08T09:48:23.000Z",
      "distro": "resolute",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/7c15c75ae0cdc05bebf195cb91c2549ab92170536b952fb9813c0a11a1054d44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-08T10:32:50.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/722cc3eaa681e188ccca4c7a0293ccc3720d55fab7276ea89595b345729e158a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-08T10:30:32.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/ef7146a06ca5ee7acaa790e72cb164031300406759972a773d048b540fa0955d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.1",
      "date": "2026-10-08T09:48:29.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/d3eb8612301de0cefcc4255c4d2945c943ea7dc543f15dfa3eb164a8fc1e81ed",
      "status": "success",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-08T09:47:41.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/5bbd67f1ec8a308f3528d666ccd43b5d8524ea53f5333a9e15d273e3224387ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-08T09:47:35.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/7edf451808d9d1159a92601f79e98d4ce7fde8d952cfa14a04632e3f5c624899",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-08T09:47:39.000Z",
      "commit": "af10eb7ea311d0c0100daf218374c0a3d9c6bfa1",
      "fileid": "https://r2.ropensci.org/ffafa2d1d08d8d3f9d2faa040fd4bda25cbfdd83dd22addff5f1139395e08f34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/37758609653"
    }
  ]
}