{
  "_id": "6a13f9edacfb0bcc41d34de1",
  "Package": "cohortBuilder",
  "Type": "Package",
  "Title": "Data Source Agnostic Filtering Tools",
  "Version": "0.4.0",
  "Authors@R": "c(person('Krystian', 'Igras',\nemail = 'krystian8207@gmail.com',\nrole = c('cre', 'aut')),\nperson('Adam', 'Foryś',\nrole = \"ctb\"))",
  "Maintainer": "Krystian Igras <krystian8207@gmail.com>",
  "Description": "Common API for filtering data stored in different data\nmodels. Provides multiple filter types and reproducible R code.\nWorks standalone or with 'shinyCohortBuilder' as the GUI for\ninteractive Shiny apps.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "KeepSource": "true",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Collate": "'cohortBuilder-package.R' 'cohort_methods.R'\n'source_methods.R' 'step.R' 'filter.R' 'attrition.R'\n'bind_keys.R' 'hooks.R' 'list_operators.R' 'repro_code_utils.R'\n'source_tblist.R' 'data.R'",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/r-world-devs/cohortBuilder/,\nhttps://r-world-devs.github.io/cohortBuilder/",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://r-world-devs.r-universe.dev",
  "Date/Publication": "2026-02-24 14:36:07 UTC",
  "RemoteUrl": "https://github.com/r-world-devs/cohortbuilder",
  "RemoteRef": "HEAD",
  "RemoteSha": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-25 07:24:04 UTC",
    "User": "root"
  },
  "Author": "Krystian Igras [cre, aut],\nAdam Foryś [ctb]",
  "MD5sum": "7beb1380c897814c2bd6abce98be11ca",
  "_user": "r-world-devs",
  "_type": "src",
  "_file": "cohortBuilder_0.4.0.tar.gz",
  "_fileid": "bc415c0363ee771efe786cee4a5234a2e6d2833af64c92d0a3ce073f9d0a6994",
  "_filesize": 1055331,
  "_sha256": "bc415c0363ee771efe786cee4a5234a2e6d2833af64c92d0a3ce073f9d0a6994",
  "_created": "2026-05-25T07:24:04.000Z",
  "_published": "2026-05-25T07:27:41.309Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77673142894,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193651822"
    },
    {
      "job": 77673142883,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193649617"
    },
    {
      "job": 77673142880,
      "time": 170,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193648263"
    },
    {
      "job": 77673142870,
      "time": 139,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193643438"
    },
    {
      "job": 77672727676,
      "time": 212,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193613066"
    },
    {
      "job": 77673142876,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193642190"
    },
    {
      "job": 77673142887,
      "time": 106,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193640296"
    },
    {
      "job": 77673142902,
      "time": 131,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193646546"
    },
    {
      "job": 77673142895,
      "time": 150,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193651004"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/r-world-devs/cohortbuilder",
  "_commit": {
    "id": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
    "author": "Krystian Igras <krystian.igras@contractors.roche.com>",
    "committer": "Krystian Igras <krystian.igras@contractors.roche.com>",
    "message": "Fix long flepath warning.\n",
    "time": 1771943767
  },
  "_maintainer": {
    "name": "Krystian Igras",
    "email": "krystian8207@gmail.com",
    "login": "krystian8207",
    "description": "",
    "uuid": 20457043
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0",
      "role": "Imports"
    },
    {
      "package": "formatR",
      "role": "Imports"
    },
    {
      "package": "collapse",
      "role": "Imports"
    },
    {
      "package": "queryBuilder",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "r-world-devs",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-07",
      "n": 3
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-02-24"
    }
  ],
  "_stars": 9,
  "_contributors": [
    {
      "user": "krystian8207",
      "count": 105,
      "uuid": 20457043
    },
    {
      "user": "syrobx",
      "count": 54,
      "uuid": 156790753
    },
    {
      "user": "galachad",
      "count": 51,
      "uuid": 4296390
    }
  ],
  "_userbio": {
    "uuid": 103638913,
    "type": "organization",
    "name": "r-world-devs"
  },
  "_downloads": {
    "count": 247,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cohortBuilder"
  },
  "_devurl": "https://github.com/r-world-devs/cohortbuilder",
  "_pkgdown": "https://r-world-devs.github.io/cohortBuilder/",
  "_searchresults": 50,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/cohortBuilder.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/r-world-devs/cohortbuilder",
  "_realowner": "r-world-devs",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2022-06-01"
    },
    {
      "version": "0.2.0",
      "date": "2023-02-28"
    },
    {
      "version": "0.3.0",
      "date": "2024-09-25"
    },
    {
      "version": "0.4.0",
      "date": "2026-02-24"
    }
  ],
  "_exports": [
    ".as_constructor",
    ".collect_data",
    ".gen_id",
    ".get_attrition_count",
    ".get_attrition_label",
    ".get_item",
    ".get_method",
    ".get_stats",
    ".if_value",
    ".init_step",
    ".post_binding",
    ".post_filtering",
    ".pre_filtering",
    ".print_filter",
    ".repro_code_tweak",
    ".run_binding",
    "%->%",
    "add_filter",
    "add_hook",
    "add_source",
    "add_step",
    "as.tblist",
    "attrition",
    "bind_key",
    "bind_keys",
    "cb_filter.date_range",
    "cb_filter.datetime_range",
    "cb_filter.discrete",
    "cb_filter.discrete_text",
    "cb_filter.multi_discrete",
    "cb_filter.query",
    "cb_filter.range",
    "code",
    "cohort",
    "data_key",
    "def_filter",
    "description",
    "filter",
    "get_data",
    "get_hook",
    "get_state",
    "new_filter",
    "plot_data",
    "primary_keys",
    "restore",
    "rm_filter",
    "rm_step",
    "run",
    "set_source",
    "Source",
    "stat",
    "step",
    "sum_up",
    "tblist",
    "update_filter",
    "update_source"
  ],
  "_datasets": [
    {
      "name": "librarian",
      "title": "Sample of library database",
      "object": "librarian",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cohortBuilder-package",
      "title": "Create data source cohort",
      "topics": [
        "cohortBuilder-package"
      ]
    },
    {
      "page": "dot-as_constructor",
      "title": "Attach proper class to filter constructor",
      "topics": [
        ".as_constructor"
      ]
    },
    {
      "page": "dot-gen_id",
      "title": "Generate random ID",
      "topics": [
        ".gen_id"
      ]
    },
    {
      "page": "dot-get_item",
      "title": "Return list of objects matching provided condition.",
      "topics": [
        ".get_item"
      ]
    },
    {
      "page": "dot-get_method",
      "title": "Get function definition",
      "topics": [
        ".get_method"
      ]
    },
    {
      "page": "dot-if_value",
      "title": "Return default value if values are equal",
      "topics": [
        ".if_value"
      ]
    },
    {
      "page": "dot-print_filter",
      "title": "Method for printing filter details",
      "topics": [
        ".print_filter"
      ]
    },
    {
      "page": "grapes-greater-than-grapes",
      "title": "Operator simplifying adding steps or filters to Cohort and Source objects",
      "topics": [
        "%->%"
      ]
    },
    {
      "page": "add_filter",
      "title": "Add filter definition",
      "topics": [
        "add_filter",
        "add_filter.Cohort",
        "add_filter.Source"
      ]
    },
    {
      "page": "add_source",
      "title": "Add source to Cohort object.",
      "topics": [
        "add_source"
      ]
    },
    {
      "page": "add_step",
      "title": "Add filtering step definition",
      "topics": [
        "add_step",
        "add_step.Cohort",
        "add_step.Source"
      ]
    },
    {
      "page": "attrition",
      "title": "Show attrition plot.",
      "topics": [
        "attrition"
      ]
    },
    {
      "page": "binding-keys",
      "title": "Describe data relations with binding keys",
      "topics": [
        "binding-keys",
        "bind_key",
        "bind_keys"
      ]
    },
    {
      "page": "code",
      "title": "Return reproducible data filtering code.",
      "topics": [
        "code"
      ]
    },
    {
      "page": "Cohort",
      "title": "R6 class representing Cohort object.",
      "topics": [
        "Cohort"
      ]
    },
    {
      "page": "cohort-methods",
      "title": "Cohort related methods",
      "topics": [
        "cohort-methods"
      ]
    },
    {
      "page": "create-cohort",
      "title": "Create new 'Cohort' object",
      "topics": [
        "cohort",
        "create-cohort"
      ]
    },
    {
      "page": "creating-filters",
      "title": "Define custom filter.",
      "topics": [
        "creating-filters",
        "def_filter",
        "new_filter"
      ]
    },
    {
      "page": "data_key",
      "title": "Define Source dataset key",
      "topics": [
        "data_key"
      ]
    },
    {
      "page": "description",
      "title": "Show source data or filter description",
      "topics": [
        "description"
      ]
    },
    {
      "page": "filter",
      "title": "Define Cohort filter",
      "topics": [
        "filter",
        "filter.character"
      ]
    },
    {
      "page": "filter-source-types",
      "title": "Filter Source types methods",
      "topics": [
        "cb_filter.datetime_range",
        "cb_filter.datetime_range.tblist",
        "cb_filter.date_range",
        "cb_filter.date_range.tblist",
        "cb_filter.discrete",
        "cb_filter.discrete.tblist",
        "cb_filter.discrete_text",
        "cb_filter.discrete_text.tblist",
        "cb_filter.multi_discrete",
        "cb_filter.multi_discrete.tblist",
        "cb_filter.query",
        "cb_filter.query.tblist",
        "cb_filter.range",
        "cb_filter.range.tblist",
        "filter-source-types"
      ]
    },
    {
      "page": "filter-types",
      "title": "Filter types",
      "topics": [
        "filter-types",
        "filter.datetime_range",
        "filter.date_range",
        "filter.discrete",
        "filter.discrete_text",
        "filter.multi_discrete",
        "filter.query",
        "filter.range"
      ]
    },
    {
      "page": "get_data",
      "title": "Get step related data",
      "topics": [
        "get_data"
      ]
    },
    {
      "page": "get_state",
      "title": "Get Cohort configuration state.",
      "topics": [
        "get_state"
      ]
    },
    {
      "page": "hooks",
      "title": "Cohort hooks.",
      "topics": [
        "add_hook",
        "get_hook",
        "hooks"
      ]
    },
    {
      "page": "librarian",
      "title": "Sample of library database",
      "topics": [
        "librarian"
      ]
    },
    {
      "page": "managing-cohort",
      "title": "Managing the Cohort object",
      "topics": [
        "managing-cohort"
      ]
    },
    {
      "page": "managing-source",
      "title": "Managing the Source object",
      "topics": [
        "managing-source"
      ]
    },
    {
      "page": "plot_data",
      "title": "Plot filter related Cohort data.",
      "topics": [
        "plot_data"
      ]
    },
    {
      "page": "primary_keys",
      "title": "Define Source datasets primary keys",
      "topics": [
        "primary_keys"
      ]
    },
    {
      "page": "restore",
      "title": "Restore Cohort object.",
      "topics": [
        "restore"
      ]
    },
    {
      "page": "rm_filter",
      "title": "Remove filter definition",
      "topics": [
        "rm_filter",
        "rm_filter.Cohort",
        "rm_filter.Source"
      ]
    },
    {
      "page": "rm_step",
      "title": "Remove filtering step definition",
      "topics": [
        "rm_step",
        "rm_step.Cohort",
        "rm_step.Source"
      ]
    },
    {
      "page": "run",
      "title": "Trigger data calculations.",
      "topics": [
        "run"
      ]
    },
    {
      "page": "set_source",
      "title": "Create Cohort source",
      "topics": [
        "set_source",
        "set_source.tblist"
      ]
    },
    {
      "page": "Source",
      "title": "R6 class representing a data source",
      "topics": [
        "Source"
      ]
    },
    {
      "page": "source-layer",
      "title": "Source compatibility methods.",
      "topics": [
        ".collect_data",
        ".collect_data.default",
        ".collect_data.tblist",
        ".get_attrition_count",
        ".get_attrition_count.default",
        ".get_attrition_label",
        ".get_attrition_label.default",
        ".get_stats",
        ".get_stats.default",
        ".get_stats.tblist",
        ".init_step",
        ".init_step.default",
        ".init_step.tblist",
        ".post_binding",
        ".post_binding.default",
        ".post_filtering",
        ".post_filtering.default",
        ".pre_filtering",
        ".pre_filtering.default",
        ".repro_code_tweak",
        ".run_binding",
        ".run_binding.default",
        "source-layer"
      ]
    },
    {
      "page": "stat",
      "title": "Get Cohort related statistics.",
      "topics": [
        "stat"
      ]
    },
    {
      "page": "step",
      "title": "Create filtering step",
      "topics": [
        "step"
      ]
    },
    {
      "page": "sum_up",
      "title": "Sum up Cohort state.",
      "topics": [
        "sum_up"
      ]
    },
    {
      "page": "tblist",
      "title": "Create in memory tables connection",
      "topics": [
        "as.tblist",
        "tblist"
      ]
    },
    {
      "page": "update_filter",
      "title": "Update filter definition",
      "topics": [
        "update_filter",
        "update_filter.Cohort",
        "update_filter.Source"
      ]
    },
    {
      "page": "update_source",
      "title": "Update source in Cohort object.",
      "topics": [
        "update_source"
      ]
    }
  ],
  "_pkglogo": "https://github.com/r-world-devs/cohortbuilder/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/r-world-devs/cohortbuilder/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "collapse",
    "cpp11",
    "dplyr",
    "farver",
    "formatR",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "custom-filters.Rmd",
      "filename": "custom-filters.html",
      "title": "Implementing custom filters",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Filter structure",
        "Logical filter"
      ],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-24 10:34:25",
      "commits": 5
    },
    {
      "source": "cohortBuilder.Rmd",
      "filename": "cohortBuilder.html",
      "title": "Introduction to cohortBuilder",
      "engine": "knitr::rmarkdown",
      "headings": [
        "cohortBuilder vs. dplyr",
        "Data: librarian",
        "Source object",
        "Cohort object",
        "Configuring and running filters",
        "Multi-stage filtering",
        "Exploring the Cohort object methods",
        "Learning more about the source data",
        "Sharing code and reproducibility"
      ],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-17 10:53:03",
      "commits": 3
    },
    {
      "source": "managing-cohort.Rmd",
      "filename": "managing-cohort.html",
      "title": "Managing Cohort Object",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Managing filters",
        "Managing steps",
        "Managing source"
      ],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-17 10:53:03",
      "commits": 3
    },
    {
      "source": "binding-keys.Rmd",
      "filename": "binding-keys.html",
      "title": "Specifying data relations with Binding Keys",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Classic approach",
        "Binding Keys"
      ],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-24 10:34:25",
      "commits": 4
    },
    {
      "source": "cohort-configuration.Rmd",
      "filename": "cohort-configuration.html",
      "title": "Variants for Cohort Configuration",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Filtering steps in Source",
        "Filtering steps in Cohort"
      ],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-17 10:53:03",
      "commits": 2
    },
    {
      "source": "custom-extensions.Rmd",
      "filename": "custom-extensions.html",
      "title": "Writing custom extensions",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-05-22 18:35:00",
      "modified": "2026-02-17 10:53:03",
      "commits": 5
    }
  ],
  "_score": 7.385606273598312,
  "_indexed": true,
  "_nocasepkg": "cohortbuilder",
  "_universes": [
    "r-world-devs",
    "krystian8207"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:31.000Z",
      "distro": "noble",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "faaab0ba083e1f4b652b3dc4c6bbb61ea26b53734e01bce8a92bbad494dd579c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:24.000Z",
      "distro": "noble",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "90f4d15358a81bc77099e2c89e995daeabf1f034cdb372c8af155ea66c28cba1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:26.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "e461c37c2071ec32a36c435a12e690eeb0c67d61e31f60f5175b52a46356ce80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:02.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "5b98b4e1173a1d4737d0ca99b38f9422fc3117937db3405a27cfa6246b8baead",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:21.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "b0b0a476f8a822bee7f13dfe5db7205dcdf6659468fda523377fdad83e986b4f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T07:25:29.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "bba0393f1a02da9363b0ed2edcbdd250952b732cfea96fa348b0868a7accf4eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:01.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "002502bb44135cecb89bc7fcc96a73279aa05aac9ab954b124edd5a6b3fd7c0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-25T07:26:19.000Z",
      "commit": "a404b64ec61dc1b1de451aa88630677cf5ae70dd",
      "fileid": "e8bbabba81bec936db85d322456657c9c0b00b7ece8ec0733a8b92c4e00322cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-world-devs/actions/runs/26388603824"
    }
  ]
}