{
  "_id": "6a3ced8611b455f4884bd81e",
  "Package": "selecta",
  "Type": "Package",
  "Title": "Declarative EQUATOR-Style Flow Diagrams for Clinical Studies",
  "Version": "0.6.0",
  "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.codeberg.page/selecta,\nhttps://codeberg.org/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-06-19 07:22:58 UTC",
  "RemoteUrl": "https://github.com/phmcc/selecta",
  "RemoteRef": "HEAD",
  "RemoteSha": "df7f69079a834914c4aa1507dc4f877ec7585db9",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-25 08:53:22 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>",
  "MD5sum": "d648301f706ab6b514e3e4b66487b419",
  "_user": "phmcc",
  "_type": "src",
  "_file": "selecta_0.6.0.tar.gz",
  "_fileid": "9ecfcf3225ae7029c7365b86d174aa376c93a6a90e32a49e0e690d1e4e012093",
  "_filesize": 2374669,
  "_sha256": "9ecfcf3225ae7029c7365b86d174aa376c93a6a90e32a49e0e690d1e4e012093",
  "_created": "2026-06-25T08:53:22.000Z",
  "_published": "2026-06-25T08:57:42.234Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83393191915,
      "time": 164,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7873367932"
    },
    {
      "job": 83393191924,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7873365964"
    },
    {
      "job": 83393191902,
      "time": 226,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7873377955"
    },
    {
      "job": 83393191913,
      "time": 149,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7873352827"
    },
    {
      "job": 83392546598,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7873305879"
    },
    {
      "job": 83393191886,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7873349901"
    },
    {
      "job": 83393191921,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7873344098"
    },
    {
      "job": 83393191992,
      "time": 127,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7873354522"
    },
    {
      "job": 83393191922,
      "time": 107,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7873347614"
    }
  ],
  "_buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/phmcc/selecta",
  "_commit": {
    "id": "df7f69079a834914c4aa1507dc4f877ec7585db9",
    "author": "Paul H. McClelland <PaulHMcClelland@protonmail.com>",
    "committer": "Paul H. McClelland <PaulHMcClelland@protonmail.com>",
    "message": "Pre-release cleaning 4\n",
    "time": 1781853778
  },
  "_maintainer": {
    "name": "Paul Hsin-ti McClelland",
    "email": "paulhmcclelland@protonmail.com",
    "login": "phmcc",
    "description": "",
    "uuid": 62819679,
    "orcid": "0000-0002-3119-6531"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "grid",
      "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
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "phmcc",
      "count": 11,
      "uuid": 62819679
    }
  ],
  "_userbio": {
    "uuid": 62819679,
    "type": "user",
    "name": "Paul H. McClelland",
    "followers": 1
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/selecta"
  },
  "_devurl": "https://github.com/phmcc/selecta",
  "_pkgdown": "https://phmcc.codeberg.page/selecta",
  "_searchresults": 0,
  "_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/selecta.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/phmcc/selecta",
  "_realowner": "phmcc",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.6.0",
      "date": "2026-06-24"
    }
  ],
  "_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.243038048686294,
  "_indexed": true,
  "_nocasepkg": "selecta",
  "_universes": [
    "phmcc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-25T08:55:49.000Z",
      "distro": "resolute",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "36d47e4fcdfe795a8dcdaf2c4388bae192ecd576812bad720c807e8f6a1e46fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-25T08:55:45.000Z",
      "distro": "resolute",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "d0886ac592780d3cd201274cffbe941ac6aa3f760e55b776e5f37295a57c0e89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-25T08:56:14.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "dcb7b571aa62a2d2638730a17b17774b9db25bb2fffa0f8de427c46a9927efa5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6.0",
      "date": "2026-06-25T08:55:19.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "02fa97e640ef63b83216a63c2585a0bdb427873acda4a68322aa5ea12a5329b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.0",
      "date": "2026-06-25T08:55:33.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "94b9174380501c31b4013d1a2875976d2f8e980439821d536d4a19e4dac29d0c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-25T08:54:31.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "047aca10f35b1c1914fa29cee3c4edc2e721a691788d1fbd06d3b1e92c9dbf31",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-25T08:54:45.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "028024df5bff14c70cd8f0a4fe305cef069b925caaf110eeb4767af357ae082c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6.0",
      "date": "2026-06-25T08:54:38.000Z",
      "commit": "df7f69079a834914c4aa1507dc4f877ec7585db9",
      "fileid": "ca7dc5e751b138f26a639940e3052782992ecbe9ce1edbcb9dd08332235bbf80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/phmcc/actions/runs/28158398545"
    }
  ]
}