{
  "_id": "6a3bdc9e5cdecea1d68395dd",
  "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",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-24 13:29:37 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>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-24 08:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/selecta",
  "RemoteRef": "HEAD",
  "RemoteSha": "9ad570de771158a81144ba6565d204f5e0d06e6e",
  "MD5sum": "a983dedd9ee99eeafbdc100f9c355ce4",
  "_user": "cran",
  "_type": "src",
  "_file": "selecta_0.6.0.tar.gz",
  "_fileid": "a0e53e700ddaae4ab217cd6f8a57af906ad87a671eab518d2108040488e0379f",
  "_filesize": 2376307,
  "_sha256": "a0e53e700ddaae4ab217cd6f8a57af906ad87a671eab518d2108040488e0379f",
  "_created": "2026-06-24T13:29:37.000Z",
  "_published": "2026-06-24T13:33:18.521Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83206605994,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7851093914"
    },
    {
      "job": 83206606041,
      "time": 165,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851089884"
    },
    {
      "job": 83205767835,
      "time": 230,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851012986"
    },
    {
      "job": 83206605883,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7851070888"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/28101855627",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/selecta",
  "_commit": {
    "id": "9ad570de771158a81144ba6565d204f5e0d06e6e",
    "author": "Paul Hsin-ti McClelland <PaulHMcClelland@protonmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.6.0\n",
    "time": 1782290402
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.6.0",
      "date": "2026-06-24"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "phmcc",
      "count": 1,
      "uuid": 62819679
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 610,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_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"
  ],
  "_cranurl": false,
  "_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/cran/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-24 08:40:02",
      "modified": "2026-06-24 08:40:02",
      "commits": 1
    },
    {
      "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-24 08:40:02",
      "modified": "2026-06-24 08:40:02",
      "commits": 1
    },
    {
      "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-24 08:40:02",
      "modified": "2026-06-24 08:40:02",
      "commits": 1
    },
    {
      "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-24 08:40:02",
      "modified": "2026-06-24 08:40:02",
      "commits": 1
    },
    {
      "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-24 08:40:02",
      "modified": "2026-06-24 08:40:02",
      "commits": 1
    }
  ],
  "_score": 3.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "selecta",
  "_universes": [
    "cran",
    "phmcc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-24T13:32:22.000Z",
      "distro": "resolute",
      "commit": "9ad570de771158a81144ba6565d204f5e0d06e6e",
      "fileid": "738eb9fcedf1f20bce29b94e17d5048b432377843db0f120b8604b639c1eeb07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28101855627"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6.0",
      "date": "2026-06-24T13:32:13.000Z",
      "distro": "resolute",
      "commit": "9ad570de771158a81144ba6565d204f5e0d06e6e",
      "fileid": "c704a58768fa721c9302094d2efa59199ca69e46638287bd97f4adecad83e8e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28101855627"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.0",
      "date": "2026-06-24T13:32:01.000Z",
      "commit": "9ad570de771158a81144ba6565d204f5e0d06e6e",
      "fileid": "22e3892eeb1b3a5bcef9153f867813c86b8d10eb7c0eee3e67b0630d136c866f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28101855627"
    }
  ]
}