{
  "_id": "6a46c674c3efdb0cb7aa479e",
  "Package": "cs9",
  "Title": "A Framework for Real-Time Analysis and Disease Surveillance",
  "Version": "26.5.13",
  "Author": "Richard Aubrey White [aut, cre]\n(<https://orcid.org/0000-0002-6747-1726>), Core Surveillance\n[cph]",
  "Maintainer": "Richard Aubrey White <hello@rwhite.no>",
  "Authors@R": "c(\nperson(c(\"Richard\",\"Aubrey\"), \"White\", email = \"hello@rwhite.no\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6747-1726\")\n)\n)",
  "Description": "A comprehensive framework for building real-time disease\nsurveillance systems. Provides R6-based infrastructure for\ndatabase-driven surveillance tasks, with support for parallel\nprocessing, data validation, and automated pipeline execution.\nDesigned for epidemiological analysis and public health\nmonitoring applications.",
  "URL": "https://niphr.github.io/cs9/, https://github.com/niphr/cs9",
  "BugReports": "https://github.com/niphr/cs9/issues",
  "License": "MIT + file LICENSE",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Config/Needs/website": "niphr/cstemplate",
  "Config/pak/sysreqs": "cmake git make libgit2-dev libicu-dev libuv1-dev\nunixodbc-dev libssl-dev libx11-dev",
  "Repository": "https://niphr.r-universe.dev",
  "Date/Publication": "2026-07-01 09:02:08 UTC",
  "RemoteUrl": "https://github.com/niphr/cs9",
  "RemoteRef": "HEAD",
  "RemoteSha": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-01 09:39:33 UTC",
    "User": "root"
  },
  "_user": "niphr",
  "_type": "src",
  "_file": "cs9_26.5.13.tar.gz",
  "_fileid": "https://r2.ropensci.org/e64e21ff759cd44b48ca065f2dd888956e81ecf8cace00d89ffb726a75bae19b",
  "_filesize": 2586750,
  "_sha256": "e64e21ff759cd44b48ca065f2dd888956e81ecf8cace00d89ffb726a75bae19b",
  "_expires": "2026-10-10T20:13:40.000Z",
  "_created": "2026-07-01T09:39:33.000Z",
  "_published": "2026-07-02T20:13:40.726Z",
  "_jobs": [
    {
      "job": 84868691351,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8006086070"
    },
    {
      "job": 84868690922,
      "time": 196,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8006099956"
    },
    {
      "job": 84868691027,
      "time": 100,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8006062317"
    },
    {
      "job": 84868691363,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8006081448"
    },
    {
      "job": 84868690388,
      "time": 215,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8006020403"
    },
    {
      "job": 84868691570,
      "time": 169,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8006089009"
    },
    {
      "job": 84868691580,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8006059124"
    },
    {
      "job": 84868691077,
      "time": 96,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8006060598"
    },
    {
      "job": 84868691048,
      "time": 89,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8006059628"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736",
  "_status": "success",
  "_upstream": "https://github.com/niphr/cs9",
  "_commit": {
    "id": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
    "author": "Richard Aubrey White <hello@rwhite.no>",
    "committer": "Richard Aubrey White <hello@rwhite.no>",
    "message": "Drop redundant Overview from home page (covered by the hero)\n",
    "time": 1782896528
  },
  "_maintainer": {
    "name": "Richard Aubrey White",
    "email": "hello@rwhite.no",
    "login": "raubreywhite",
    "orcid": "0000-0002-6747-1726",
    "twitter": "@raubreywhite",
    "description": "Applied infectious diseases statistician. Head of @norsyss within @folkehelseinstituttet \n",
    "uuid": 1532091
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "callr",
      "role": "Imports"
    },
    {
      "package": "csdb",
      "role": "Imports"
    },
    {
      "package": "cstime",
      "version": ">= 2023.5.3",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "later",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "plnr",
      "version": ">= 2021.5.4",
      "role": "Imports"
    },
    {
      "package": "processx",
      "role": "Imports"
    },
    {
      "package": "progress",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "rstudioapi",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "niphr",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 22
    },
    {
      "week": "2025-52",
      "n": 5
    },
    {
      "week": "2026-20",
      "n": 1
    },
    {
      "week": "2026-27",
      "n": 10
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "raubreywhite",
      "count": 189,
      "uuid": 1532091
    }
  ],
  "_userbio": {
    "uuid": 244534951,
    "type": "organization",
    "name": "Norwegian Institute of Public Health - R codebases",
    "followers": 2,
    "description": "The Norwegian Institute of Public Health is a government agency under the Ministry of Health and Care Services."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cs9"
  },
  "_devurl": "https://github.com/niphr/cs9",
  "_pkgdown": "https://niphr.github.io/cs9/",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cs9.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "%>%",
    "check_environment_setup",
    "config",
    "create_folder_if_doesnt_exist",
    "create_latest_folder",
    "get_config_data_hash_for_each_plan",
    "get_config_log",
    "get_config_tables_last_updated",
    "get_config_tasks_stats",
    "mandatory_db_filter",
    "path",
    "run_task_sequentially_as_callr_bg_using_load_all",
    "run_task_sequentially_as_rstudio_job_using_load_all",
    "SurveillanceSystem_v9",
    "TaskJob",
    "update_config_log"
  ],
  "_help": [
    {
      "page": "check_environment_setup",
      "title": "Check Environment Setup",
      "topics": [
        "check_environment_setup"
      ]
    },
    {
      "page": "config",
      "title": "Flags/values to be used in the 'dashboards' scene",
      "topics": [
        "config"
      ]
    },
    {
      "page": "create_folder_if_doesnt_exist",
      "title": "Create Folder If It Doesn't Exist",
      "topics": [
        "create_folder_if_doesnt_exist"
      ]
    },
    {
      "page": "create_latest_folder",
      "title": "Create Latest Folder",
      "topics": [
        "create_latest_folder"
      ]
    },
    {
      "page": "get_config_data_hash_for_each_plan",
      "title": "Get Configuration Data Hash for Each Plan",
      "topics": [
        "get_config_data_hash_for_each_plan"
      ]
    },
    {
      "page": "get_config_log",
      "title": "Get Configuration Log",
      "topics": [
        "get_config_log"
      ]
    },
    {
      "page": "get_config_tables_last_updated",
      "title": "Get Configuration Tables Last Updated",
      "topics": [
        "get_config_tables_last_updated"
      ]
    },
    {
      "page": "get_config_tasks_stats",
      "title": "Get Configuration Tasks Statistics",
      "topics": [
        "get_config_tasks_stats"
      ]
    },
    {
      "page": "mandatory_db_filter",
      "title": "Filter surveillance data by standard epidemiological dimensions",
      "topics": [
        "mandatory_db_filter"
      ]
    },
    {
      "page": "path",
      "title": "Get Results Folder Path",
      "topics": [
        "path"
      ]
    },
    {
      "page": "run_task_sequentially_as_callr_bg_using_load_all",
      "title": "Run a cs9 task in a background process, streaming its output live",
      "topics": [
        "run_task_sequentially_as_callr_bg_using_load_all"
      ]
    },
    {
      "page": "run_task_sequentially_as_rstudio_job_using_load_all",
      "title": "Run a Task Sequentially as an RStudio Job",
      "topics": [
        "run_task_sequentially_as_rstudio_job_using_load_all"
      ]
    },
    {
      "page": "SurveillanceSystem_v9",
      "title": "A Surveillance System Object",
      "topics": [
        "SurveillanceSystem_v9"
      ]
    },
    {
      "page": "TaskJob",
      "title": "TaskJob R6 Class",
      "topics": [
        "TaskJob"
      ]
    },
    {
      "page": "update_config_log",
      "title": "Update Configuration Log",
      "topics": [
        "update_config_log"
      ]
    }
  ],
  "_pkglogo": "https://github.com/niphr/cs9/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/niphr/cs9/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "blob",
    "callr",
    "cli",
    "clipr",
    "codetools",
    "cpp11",
    "crayon",
    "credentials",
    "csdb",
    "cstime",
    "csutil",
    "curl",
    "data.table",
    "DBI",
    "desc",
    "digest",
    "dplyr",
    "farver",
    "foreach",
    "fs",
    "generics",
    "gert",
    "ggplot2",
    "gitcreds",
    "glue",
    "gtable",
    "hms",
    "httr2",
    "ini",
    "isoband",
    "iterators",
    "jsonlite",
    "labeling",
    "later",
    "lifecycle",
    "lubridate",
    "magrittr",
    "odbc",
    "openssl",
    "otel",
    "pbmcapply",
    "pillar",
    "pkgconfig",
    "plnr",
    "prettyunits",
    "processx",
    "progress",
    "progressr",
    "ps",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rprojroot",
    "rstudioapi",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "usethis",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "whisker",
    "withr",
    "yaml",
    "zip"
  ],
  "_vignettes": [
    {
      "source": "creating-a-task.Rmd",
      "filename": "creating-a-task.html",
      "title": "Creating a task",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Prerequisites",
        "Step 1: Initialize a surveillance system",
        "Step 2: Define database tables",
        "Step 3: Implement task functions",
        "Data selector function",
        "Action function",
        "Step 4: Configure the task",
        "Step 5: Execute the task",
        "Step 6: Monitor and debug tasks",
        "Advanced task features",
        "Parallel processing",
        "Dynamic plan generation",
        "Best practices",
        "Error handling",
        "Data validation",
        "Modular design",
        "Summary",
        "See also"
      ],
      "created": "2025-08-20 10:39:18",
      "modified": "2026-06-30 06:06:55",
      "commits": 7
    },
    {
      "source": "file-layout.Rmd",
      "filename": "file-layout.html",
      "title": "File Layout",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Starting from the example package",
        "00_env_and_namespace.R",
        "01_definitions.R",
        "02_surveillance_systems.R",
        "03_tables.R",
        "04_tasks.R",
        "05_deliverables.R",
        "10_onLoad.R",
        "11_onAttach.R",
        "Task files",
        "weather_download_and_import_rawdata.R",
        "weather_clean_data.R",
        "weather_export_weather_plots.R",
        "Notes",
        "Next steps"
      ],
      "created": "2023-03-09 10:21:44",
      "modified": "2026-06-30 06:06:55",
      "commits": 15
    },
    {
      "source": "installation.Rmd",
      "filename": "installation.html",
      "title": "Installation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation options",
        "CRAN installation (limited functionality)",
        "Full installation (database-driven surveillance)",
        "Database setup",
        "PostgreSQL installation",
        "Option 1: Docker (recommended)",
        "Option 2: System installation",
        "Database schema setup",
        "Environment variable configuration",
        "Setting up .Renviron",
        "Variable descriptions",
        "Package behavior without database configuration",
        "Docker",
        "Moving from CRAN to full setup",
        "Verification and troubleshooting",
        "Verify your setup",
        "Common issues",
        "Next steps"
      ],
      "created": "2023-03-07 11:18:33",
      "modified": "2026-06-30 06:06:55",
      "commits": 13
    },
    {
      "source": "cs9.Rmd",
      "filename": "cs9.html",
      "title": "Introduction to CS9",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is CS9?",
        "When to use CS9",
        "Key concepts and definitions",
        "Surveillance system architecture",
        "Example workflow",
        "Plan-heavy or analysis-heavy tasks?",
        "Other vignettes",
        "Example",
        "Surveillance system setup",
        "Database table definition",
        "Task configuration",
        "for_each_plan",
        "plnr::expand_list",
        "for_each_analysis",
        "universal_argset",
        "upsert_at_end_of_each_plan",
        "insert_at_end_of_each_plan",
        "action_fn_name",
        "data_selector_fn_name",
        "schema",
        "data_selector_fn",
        "action_fn",
        "Run the task",
        "Common task patterns",
        "Importing data",
        "Analysis",
        "Exporting multiple sets of results",
        "Exporting combined results",
        "Deployment",
        "Getting started",
        "Next steps"
      ],
      "created": "2024-05-27 14:11:20",
      "modified": "2026-06-30 06:06:55",
      "commits": 13
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "cs9",
  "_universes": [
    "niphr",
    "raubreywhite"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "26.5.13",
      "date": "2026-07-01T09:42:15.000Z",
      "distro": "resolute",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/f96563a3154d79b2eaee273e052c9020ab876c9f24b8fffeeff82f752c2e37cc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "26.5.13",
      "date": "2026-07-01T09:42:48.000Z",
      "distro": "resolute",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/87586dcc2b01d0541e5b2092cd359a4986fa6327b401b61adc2caf55ffa8bafc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "26.5.13",
      "date": "2026-07-01T09:41:18.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/1308cabf168f73ebecd73c296fe432d5e0030690449d35952fd1d23732f28690",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "26.5.13",
      "date": "2026-07-01T09:41:52.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/99d2d23541a0fa880963c3e2441f25214ed4b99e54cf602e1ea5648b12ab97bb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "26.5.13",
      "date": "2026-07-01T09:42:41.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/4a7abb8bfe7324d5650ecce0d05a454a554d81d81126d711f025b72c7604e318",
      "status": "success",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "26.5.13",
      "date": "2026-07-01T09:41:00.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/22139a3337d46bfef474bcbc30638cc3760d97d4e2985994386ace4ae68c999f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "26.5.13",
      "date": "2026-07-01T09:41:07.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/d2d0b3036aeb53c959a907debbd58bc35bc97b428c58180609925e0dbc9788cc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "26.5.13",
      "date": "2026-07-01T09:41:00.000Z",
      "commit": "25d11d919bcbde4edf02e7180ad44f86b6aa1121",
      "fileid": "https://r2.ropensci.org/4699d79146e90b83ab46334697f3a6755d8dad0f581403f0b9564709c722dd24",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28508068736"
    }
  ]
}