{
  "_id": "6a1014e0acfb0bcc41c83cd1",
  "Package": "stRoke",
  "Title": "Clinical Stroke Research",
  "Version": "25.9.2",
  "Authors@R": "person(\"Andreas Gammelgaard\", \"Damsbo\", , \"agdamsbo@clin.au.dk\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-7559-1154\"))",
  "Description": "A collection of tools for clinical trial data management\nand analysis in research and teaching. The package is mainly\ncollected for personal use, but any use beyond that is\nencouraged. This package has migrated functions from\n'agdamsbo/daDoctoR', and new functions has been added. Version\nfollows months and year. See NEWS/Changelog for release notes.\nThis package includes sampled data from the TALOS trial\n(Kraglund et al (2018) <doi:10.1161/STROKEAHA.117.020067>). The\nwin_prob() function is based on work by Zou et al (2022)\n<doi:10.1161/STROKEAHA.121.037744>. The age_calc() function is\nbased on work by Becker (2020) <doi:10.18637/jss.v093.i02>.",
  "URL": "https://agdamsbo.github.io/stRoke/,\nhttps://github.com/agdamsbo/stRoke",
  "BugReports": "https://github.com/agdamsbo/stRoke/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Language": "en-US",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libxml2-dev\nlibssl-dev libnode-dev",
  "Repository": "https://agdamsbo.r-universe.dev",
  "Date/Publication": "2025-09-30 10:35:04 UTC",
  "RemoteUrl": "https://github.com/agdamsbo/stroke",
  "RemoteRef": "HEAD",
  "RemoteSha": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 08:29:56 UTC",
    "User": "root"
  },
  "Author": "Andreas Gammelgaard Damsbo [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-7559-1154>)",
  "Maintainer": "Andreas Gammelgaard Damsbo <agdamsbo@clin.au.dk>",
  "MD5sum": "a842928a40f73af34007068298214c0e",
  "_user": "agdamsbo",
  "_type": "src",
  "_file": "stRoke_25.9.2.tar.gz",
  "_fileid": "2a2a1b0121c0891e794821b3e747a4a4c7c09844e8dbb9ef5b77d5e9eeb63e81",
  "_filesize": 583303,
  "_sha256": "2a2a1b0121c0891e794821b3e747a4a4c7c09844e8dbb9ef5b77d5e9eeb63e81",
  "_created": "2026-05-22T08:29:56.000Z",
  "_published": "2026-05-22T08:33:36.085Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77344296689,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156238403"
    },
    {
      "job": 77344296644,
      "time": 183,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156240384"
    },
    {
      "job": 77344296614,
      "time": 163,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156225639"
    },
    {
      "job": 77344296656,
      "time": 149,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156224004"
    },
    {
      "job": 77343741800,
      "time": 224,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156184051"
    },
    {
      "job": 77344296574,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156225123"
    },
    {
      "job": 77344296659,
      "time": 159,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156233063"
    },
    {
      "job": 77344296691,
      "time": 116,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156220520"
    },
    {
      "job": 77344296711,
      "time": 122,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156221680"
    }
  ],
  "_buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/agdamsbo/stroke",
  "_commit": {
    "id": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
    "author": "Andreas Gammelgaard Damsbo <andreas@gdamsbo.dk>",
    "committer": "Andreas Gammelgaard Damsbo <andreas@gdamsbo.dk>",
    "message": "correct version\n",
    "time": 1759228504
  },
  "_maintainer": {
    "name": "Andreas Gammelgaard Damsbo",
    "email": "agdamsbo@clin.au.dk",
    "login": "agdamsbo",
    "orcid": "0000-0002-7559-1154",
    "description": "MD, clinical researcher, opensource-enthusiast.",
    "uuid": 43278243
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "calendar",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "gtsummary",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "rankinPlot",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "role": "Suggests"
    },
    {
      "package": "pak",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    }
  ],
  "_owner": "agdamsbo",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-26",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 3
    },
    {
      "week": "2025-36",
      "n": 2
    },
    {
      "week": "2025-40",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v25.9.1",
      "date": "2025-09-02"
    }
  ],
  "_topics": [
    "neuroscience",
    "stroke"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "agdamsbo",
      "count": 69,
      "uuid": 43278243
    }
  ],
  "_userbio": {
    "uuid": 43278243,
    "type": "user",
    "name": "Andreas Gammelgaard Damsbo",
    "description": "MD, clinical researcher, opensource-enthusiast."
  },
  "_downloads": {
    "count": 256,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stRoke"
  },
  "_devurl": "https://github.com/agdamsbo/stroke",
  "_pkgdown": "https://agdamsbo.github.io/stRoke/",
  "_searchresults": 8,
  "_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/stRoke.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/agdamsbo/stroke",
  "_realowner": "agdamsbo",
  "_cranurl": true,
  "_releases": [
    {
      "version": "23.1.7",
      "date": "2023-01-24"
    },
    {
      "version": "23.4.1",
      "date": "2023-04-13"
    },
    {
      "version": "23.6.3",
      "date": "2023-07-03"
    },
    {
      "version": "23.9.1",
      "date": "2023-09-07"
    },
    {
      "version": "24.10.1",
      "date": "2024-10-25"
    },
    {
      "version": "25.9.1",
      "date": "2025-09-02"
    },
    {
      "version": "25.9.2",
      "date": "2025-10-03"
    }
  ],
  "_exports": [
    "add_padding",
    "age_calc",
    "chunks_of_n",
    "ci_plot",
    "color_plot",
    "contrast_text",
    "cpr_check",
    "cpr_dob",
    "cpr_female",
    "ds2dd",
    "files_filter",
    "generic_stroke",
    "index_plot",
    "label_select",
    "mfi_domains",
    "n_chunks",
    "pase_calc",
    "quantile_cut",
    "source_lines",
    "str_extract",
    "win_prob",
    "write_ical"
  ],
  "_datasets": [
    {
      "name": "cprs",
      "title": "Data frame of 200 cpr numbers",
      "object": "cprs",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cpr"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "metadata_names",
      "title": "Vector of REDCap metadata headers",
      "object": "metadata_names",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "pase",
      "title": "Data frame with sample data of PASE score questionnaire",
      "object": "pase",
      "class": [
        "data.frame"
      ],
      "fields": [
        "sample_pase01",
        "sample_pase01b",
        "sample_pase02",
        "sample_pase02a",
        "sample_pase03",
        "sample_pase03b",
        "sample_pase04",
        "sample_pase04b",
        "sample_pase05",
        "sample_pase05b",
        "sample_pase06",
        "sample_pase06b",
        "sample_pase07",
        "sample_pase08",
        "sample_pase09a",
        "sample_pase09b",
        "sample_pase09c",
        "sample_pase09d",
        "sample_pase10",
        "sample_pase10a",
        "sample_pase10b"
      ],
      "rows": 642,
      "table": true,
      "tojson": true
    },
    {
      "name": "score",
      "title": "Data frame with sample data of cognitive testing score",
      "object": "score",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "event",
        "a_is",
        "b_is",
        "c_is",
        "d_is",
        "e_is",
        "i_is",
        "a_lo",
        "b_lo",
        "c_lo",
        "d_lo",
        "e_lo",
        "i_lo",
        "a_up",
        "b_up",
        "c_up",
        "d_up",
        "e_up",
        "i_up",
        "a_per",
        "b_per",
        "c_per",
        "d_per",
        "e_per",
        "i_per"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "talos",
      "title": "Data frame with sample of TALOS data",
      "object": "talos",
      "class": [
        "data.frame"
      ],
      "fields": [
        "rtreat",
        "mrs_1",
        "mrs_6",
        "hypertension",
        "diabetes",
        "civil"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "trial",
      "title": "Data frame with synthetic data generated from the TALOS trial cohort",
      "object": "trial",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "active",
        "age",
        "male",
        "nihss",
        "diabetes",
        "hypertension",
        "cohabitation",
        "pase_pre",
        "pase_6",
        "mfi_6",
        "mdi_6",
        "who_6",
        "mrs_pre",
        "mrs_1",
        "mrs_6"
      ],
      "rows": 642,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_padding",
      "title": "MOVED Add padding to string",
      "topics": [
        "add_padding"
      ]
    },
    {
      "page": "age_calc",
      "title": "Calculate age in years, months, or days",
      "topics": [
        "age_calc"
      ]
    },
    {
      "page": "chunks_of_n",
      "title": "MOVED Split to chunks of size n",
      "topics": [
        "chunks_of_n"
      ]
    },
    {
      "page": "ci_plot",
      "title": "Confidence interval plot with point estimate",
      "topics": [
        "ci_plot"
      ]
    },
    {
      "page": "color_plot",
      "title": "Plot color examples with contrasting text",
      "topics": [
        "color_plot"
      ]
    },
    {
      "page": "contrast_text",
      "title": "MOVED Contrast Text Color",
      "topics": [
        "contrast_text"
      ]
    },
    {
      "page": "cpr_check",
      "title": "CPR check",
      "topics": [
        "cpr_check"
      ]
    },
    {
      "page": "cpr_dob",
      "title": "Extracting date of birth from CPR",
      "topics": [
        "cpr_dob"
      ]
    },
    {
      "page": "cpr_female",
      "title": "Determine female sex from CPR",
      "topics": [
        "cpr_female"
      ]
    },
    {
      "page": "cprs",
      "title": "Data frame of 200 cpr numbers",
      "topics": [
        "cprs"
      ]
    },
    {
      "page": "ds2dd",
      "title": "_DEPRECATED_ Moved to REDCapCAST::ds2dd() | Data set to data dictionary function",
      "topics": [
        "ds2dd"
      ]
    },
    {
      "page": "files_filter",
      "title": "MOVED Filter files in a folder",
      "topics": [
        "files_filter"
      ]
    },
    {
      "page": "generic_stroke",
      "title": "Generic stroke study outcome",
      "topics": [
        "generic_stroke"
      ]
    },
    {
      "page": "index_plot",
      "title": "Plot multidimensional cognitive test scores",
      "topics": [
        "index_plot"
      ]
    },
    {
      "page": "label_select",
      "title": "Helper function for labels in gtsummary",
      "topics": [
        "label_select"
      ]
    },
    {
      "page": "metadata_names",
      "title": "Vector of REDCap metadata headers",
      "topics": [
        "metadata_names"
      ]
    },
    {
      "page": "mfi_domains",
      "title": "MFI domain score calculator",
      "topics": [
        "mfi_domains"
      ]
    },
    {
      "page": "multi_rev",
      "title": "Reverses relevant MFI subscores",
      "topics": [
        "multi_rev"
      ]
    },
    {
      "page": "n_chunks",
      "title": "Splits in n chunks",
      "topics": [
        "n_chunks"
      ]
    },
    {
      "page": "pase",
      "title": "Data frame with sample data of PASE score questionnaire",
      "topics": [
        "pase"
      ]
    },
    {
      "page": "pase_calc",
      "title": "PASE score calculator",
      "topics": [
        "pase_calc"
      ]
    },
    {
      "page": "print.win_Prob",
      "title": "Prints win_prob results",
      "topics": [
        "print.win_Prob"
      ]
    },
    {
      "page": "quantile_cut",
      "title": "MOVED Easy function for splitting numeric variable in quantiles",
      "topics": [
        "quantile_cut"
      ]
    },
    {
      "page": "score",
      "title": "Data frame with sample data of cognitive testing score",
      "topics": [
        "score"
      ]
    },
    {
      "page": "source_lines",
      "title": "Source Lines from a File",
      "topics": [
        "source_lines"
      ]
    },
    {
      "page": "str_extract",
      "title": "Extract string based on regex pattern",
      "topics": [
        "str_extract"
      ]
    },
    {
      "page": "talos",
      "title": "Data frame with sample of TALOS data",
      "topics": [
        "talos"
      ]
    },
    {
      "page": "trial",
      "title": "Data frame with synthetic data generated from the TALOS trial cohort",
      "topics": [
        "trial"
      ]
    },
    {
      "page": "win_prob",
      "title": "Calculates the probability of winning",
      "topics": [
        "win_prob"
      ]
    },
    {
      "page": "write_ical",
      "title": "MOVED Write ical object",
      "topics": [
        "write_ical"
      ]
    }
  ],
  "_pkglogo": "https://github.com/agdamsbo/stroke/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/agdamsbo/stroke/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bigD",
    "bitops",
    "bslib",
    "cachem",
    "calendar",
    "cards",
    "cardx",
    "cli",
    "commonmark",
    "cpp11",
    "curl",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gt",
    "gtable",
    "gtsummary",
    "highr",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "juicyjuice",
    "knitr",
    "labeling",
    "lifecycle",
    "litedown",
    "lubridate",
    "magrittr",
    "markdown",
    "MASS",
    "memoise",
    "mime",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rankinPlot",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "reactable",
    "reactR",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "tinytex",
    "utf8",
    "V8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "toolbox.Rmd",
      "filename": "toolbox.html",
      "title": "Toolbox",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A toolbox",
        "CPR manipulations",
        "age_calc()",
        "cpr_check()",
        "cpr_dob()",
        "cpr_female()",
        "Plotting",
        "ci_plot()",
        "generic_stroke()",
        "index_plot()",
        "win_prob()"
      ],
      "created": "2023-01-04 13:33:48",
      "modified": "2024-10-25 06:04:41",
      "commits": 12
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "stroke",
  "_universes": [
    "agdamsbo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "25.9.2",
      "date": "2026-05-22T08:32:36.000Z",
      "distro": "noble",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "a678f1b255601c397a9525769dc3f8a8ae80740d452959fb0e6bca73c4b1a99b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "25.9.2",
      "date": "2026-05-22T08:32:43.000Z",
      "distro": "noble",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "76767692041c552c5025cc14c4521bc971a1f68aa25b642a81c080315fccb886",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "25.9.2",
      "date": "2026-05-22T08:32:04.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "cd83866d32377d3179923b8602991c222d1f0d06aff5352fbae2343a0992bd41",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "25.9.2",
      "date": "2026-05-22T08:31:58.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "868f7b9cf6205d73626c565187c9f7a731f6df32a14a2e49de27439022bbad75",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "25.9.2",
      "date": "2026-05-22T08:32:27.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "ab71b8568543a631e24c26e82077d4f7f39de4ed41019b310c225434bb9f8805",
      "status": "success",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "25.9.2",
      "date": "2026-05-22T08:32:12.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "a9abefec283dcad3349fcf9a2ade165d91b23d6ee9c2ac30723396e358d262ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "25.9.2",
      "date": "2026-05-22T08:31:31.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "410350b922d90606f9facd001adfe31b12746757a0fbbeb54ea6f0503a8c2cf4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "25.9.2",
      "date": "2026-05-22T08:31:32.000Z",
      "commit": "0d92f308cda314d8792b273d911ccdd855e9a8bd",
      "fileid": "76fc354f28e751b3f7843f41229e7cf346f334ddecc5418ae814211d73c4e4a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/agdamsbo/actions/runs/26277031778"
    }
  ]
}