{
  "_id": "6a103f7eacfb0bcc41c9ce0c",
  "Package": "clinUtils",
  "Type": "Package",
  "Title": "General Utility Functions for Analysis of Clinical Data",
  "Version": "0.2.2",
  "Date": "2025-12-04",
  "Authors@R": "c(\nperson(given = \"Laure\", family = \"Cougnaud\", role = c(\"aut\", \"cre\"),\nemail = \"laure.cougnaud@openanalytics.eu\"),\nperson(given = \"Michela\", family = \"Pasetto\", role = \"aut\",\nemail = \"michela.pasetto@openanalytics.eu\"),\nperson(given = \"Arne\", family = \"De Roeck\",\nrole = \"rev\", comment = \"tests\"),\nperson(given = \"Open Analytics\", role = \"cph\")\n)",
  "Description": "Utility functions to facilitate the import, the reporting\nand analysis of clinical data. Example datasets in 'SDTM' and\n'ADaM' format, containing a subset of patients/domains from the\n'CDISC Pilot 01 study' are also available as R datasets to\ndemonstrate the package functionalities.",
  "SystemRequirements": "pandoc (for export clin DT to a file - inclusion of\nlist of interactive plots/objects with knitr)",
  "URL": "https://github.com/openanalytics/clinUtils",
  "BugReports": "https://github.com/openanalytics/clinUtils/issues",
  "License": "MIT + file LICENSE",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "Config/pak/sysreqs": "cmake make libuv1-dev libx11-dev zlib1g-dev",
  "Repository": "https://openanalytics.r-universe.dev",
  "Date/Publication": "2025-12-04 13:34:18 UTC",
  "RemoteUrl": "https://github.com/openanalytics/clinutils",
  "RemoteRef": "HEAD",
  "RemoteSha": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
  "RemoteSubdir": "clinUtils",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 08:48:22 UTC",
    "User": "root"
  },
  "Author": "Laure Cougnaud [aut, cre],\nMichela Pasetto [aut],\nArne De Roeck [rev] (tests),\nOpen Analytics [cph]",
  "Maintainer": "Laure Cougnaud <laure.cougnaud@openanalytics.eu>",
  "MD5sum": "21c15a062fab0e694cc3b8b335d157b0",
  "_user": "openanalytics",
  "_type": "src",
  "_file": "clinUtils_0.2.2.tar.gz",
  "_fileid": "8e22fc28347760035d51752a500b312937a9e5c2f275f8c836d4515630ab7780",
  "_filesize": 939592,
  "_sha256": "8e22fc28347760035d51752a500b312937a9e5c2f275f8c836d4515630ab7780",
  "_created": "2026-05-11T08:48:22.000Z",
  "_published": "2026-05-22T11:35:26.228Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77371485679,
      "time": 164,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6914149135"
    },
    {
      "job": 77371485814,
      "time": 159,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914149416"
    },
    {
      "job": 77371485636,
      "time": 151,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6914139123"
    },
    {
      "job": 77371485833,
      "time": 182,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914144923"
    },
    {
      "job": 77371485442,
      "time": 221,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914096768"
    },
    {
      "job": 77371485152,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159521885"
    },
    {
      "job": 77371485877,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6914130008"
    },
    {
      "job": 77371485672,
      "time": 148,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6914144346"
    },
    {
      "job": 77371485951,
      "time": 138,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6914141030"
    }
  ],
  "_buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/openanalytics/clinutils",
  "_commit": {
    "id": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
    "author": "Laure Cougnaud <laure.cougnaud@openanalytics.eu>",
    "committer": "Laure Cougnaud <laure.cougnaud@openanalytics.eu>",
    "message": "update Date and Version",
    "time": 1764855258
  },
  "_maintainer": {
    "name": "Laure Cougnaud",
    "email": "laure.cougnaud@openanalytics.eu",
    "login": "lcougnaud",
    "uuid": 15339154
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "crosstalk",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "DT",
      "role": "Imports"
    },
    {
      "package": "haven",
      "role": "Imports"
    },
    {
      "package": "htmlwidgets",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "viridisLite",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "plotly",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "pander",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "flextable",
      "role": "Suggests"
    }
  ],
  "_owner": "openanalytics",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2025-36",
      "n": 2
    },
    {
      "week": "2025-49",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.2.1",
      "date": "2025-09-03"
    },
    {
      "name": "v0.2.2",
      "date": "2025-12-04"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "lcougnaud",
      "count": 89,
      "uuid": 15339154
    },
    {
      "user": "cpsievert",
      "count": 1,
      "uuid": 1365941
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    }
  ],
  "_userbio": {
    "uuid": 274806,
    "type": "organization",
    "name": "OpenAnalytics"
  },
  "_downloads": {
    "count": 417,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/clinUtils"
  },
  "_devurl": "https://github.com/openanalytics/clinutils",
  "_searchresults": 96,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/clinUtils.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/openanalytics/clinutils",
  "_realowner": "openanalytics",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2021-06-08"
    },
    {
      "version": "0.0.2",
      "date": "2021-07-14"
    },
    {
      "version": "0.0.3",
      "date": "2021-07-16"
    },
    {
      "version": "0.0.4",
      "date": "2021-07-21"
    },
    {
      "version": "0.1.0",
      "date": "2021-09-22"
    },
    {
      "version": "0.1.1",
      "date": "2022-02-22"
    },
    {
      "version": "0.1.3",
      "date": "2022-10-24"
    },
    {
      "version": "0.1.4",
      "date": "2023-01-06"
    },
    {
      "version": "0.1.5",
      "date": "2024-04-23"
    },
    {
      "version": "0.2.0",
      "date": "2024-05-17"
    },
    {
      "version": "0.2.1",
      "date": "2025-09-03"
    },
    {
      "version": "0.2.2",
      "date": "2025-12-11"
    }
  ],
  "_exports": [
    "clinColors",
    "clinLinetypes",
    "clinShapes",
    "clinShapesText",
    "compareDiff",
    "compareTables",
    "convertToDateTime",
    "exportDiffData",
    "formatLabel",
    "formatLabelChunk",
    "formatLongLabel",
    "formatTableLabel",
    "formatVarForPlotLabel",
    "getClinDT",
    "getClinDTButtons",
    "getColorPalette",
    "getLabelParamcd",
    "getLabelVar",
    "getLabelVars",
    "getLinetypePalette",
    "getPaletteCDISC",
    "getShapePalette",
    "knitPrintListObjects",
    "knitPrintListPlots",
    "loadDataADaMSDTM",
    "mergeDiffWithData",
    "reorderColumns",
    "roundHalfUp",
    "roundHalfUpTextFormat",
    "simpleCap"
  ],
  "_datasets": [
    {
      "name": "colorPaletteNRIND",
      "title": "Color palette for a standard CDISC Normal/Reference Range Indicator.",
      "object": "colorPaletteNRIND",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "dataADaMCDISCP01",
      "title": "Example of ADaM datasets from the CDISC original Pilot 01 study",
      "object": "dataADaMCDISCP01",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "dataSDTMCDISCP01",
      "title": "Example of SDTM datasets from the CDISC original Pilot 01 study",
      "object": "dataSDTMCDISCP01",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "shapePaletteNRIND",
      "title": "Shape palette for a standard CDISC Normal/Reference Range Indicator.",
      "object": "shapePaletteNRIND",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "checkVarInData",
      "title": "Check if specified variables are in the data. If they are not, they are removed from specified variables and a message is printed.",
      "topics": [
        "checkVarInData"
      ]
    },
    {
      "page": "clinColors",
      "title": "Colors of 'clinUtils'",
      "topics": [
        "clinColors"
      ]
    },
    {
      "page": "clinLinetypes",
      "title": "Linetypes of 'clinUtils'",
      "topics": [
        "clinLinetypes"
      ]
    },
    {
      "page": "clinShapes",
      "title": "Shapes of 'clinUtils'",
      "topics": [
        "clinShapes"
      ]
    },
    {
      "page": "clinShapesText",
      "title": "Shapes of 'clinUtils' as text",
      "topics": [
        "clinShapesText"
      ]
    },
    {
      "page": "clinUtils-palette",
      "title": "Parameters for all palette functions for clinical visualizations.",
      "topics": [
        "clinUtils-palette"
      ]
    },
    {
      "page": "colorPaletteNRIND",
      "title": "Color palette for a standard CDISC Normal/Reference Range Indicator.",
      "topics": [
        "colorPaletteNRIND"
      ]
    },
    {
      "page": "compareDiff",
      "title": "Get differences between two data.frames",
      "topics": [
        "compareDiff"
      ]
    },
    {
      "page": "compareTables",
      "title": "Compare tables",
      "topics": [
        "compareTables"
      ]
    },
    {
      "page": "comparisonTables-common-args",
      "title": "General parameters used for the comparison table functionality",
      "topics": [
        "comparisonTables-common-args"
      ]
    },
    {
      "page": "convertToDatatable",
      "title": "Convert to data.table",
      "topics": [
        "convertToDatatable"
      ]
    },
    {
      "page": "convertToDateTime",
      "title": "Convert character vector to date/time object",
      "topics": [
        "convertToDateTime"
      ]
    },
    {
      "page": "dataADaMCDISCP01",
      "title": "Example of ADaM datasets from the CDISC original Pilot 01 study",
      "topics": [
        "dataADaMCDISCP01"
      ]
    },
    {
      "page": "dataSDTMCDISCP01",
      "title": "Example of SDTM datasets from the CDISC original Pilot 01 study",
      "topics": [
        "dataSDTMCDISCP01"
      ]
    },
    {
      "page": "exportDiffData",
      "title": "Export the 'diff.data' object from 'compareDiff' to a user-friendly format",
      "topics": [
        "exportDiffData"
      ]
    },
    {
      "page": "formatDetailsComparison",
      "title": "Format details comparison",
      "topics": [
        "formatDetailsComparison"
      ]
    },
    {
      "page": "formatDTBarVar",
      "title": "Format a variable in a 'datatable' as a barplot.",
      "topics": [
        "formatDTBarVar"
      ]
    },
    {
      "page": "formatLabel",
      "title": "Concatenate and format text strings to a label",
      "topics": [
        "formatLabel"
      ]
    },
    {
      "page": "formatLabelChunk",
      "title": "Concatenate and format text strings to a chunk label",
      "topics": [
        "formatLabelChunk"
      ]
    },
    {
      "page": "formatLongLabel",
      "title": "Format a variable with long labels",
      "topics": [
        "formatLongLabel"
      ]
    },
    {
      "page": "formatTableLabel",
      "title": "Concatenate and format text strings to a label of a table",
      "topics": [
        "formatTableLabel"
      ]
    },
    {
      "page": "formatVarForPlotLabel",
      "title": "Format parameter variable to be displayed in the labels of a plot",
      "topics": [
        "formatVarForPlotLabel"
      ]
    },
    {
      "page": "getClinDT",
      "title": "Create an interactive table to display clinical data",
      "topics": [
        "getClinDT"
      ]
    },
    {
      "page": "getClinDTButtons",
      "title": "Get a default set of buttons to be included in the interactive table for clinical data.",
      "topics": [
        "getClinDTButtons"
      ]
    },
    {
      "page": "getColorPalette",
      "title": "Get a color palette for clinical visualizations.",
      "topics": [
        "getColorPalette"
      ]
    },
    {
      "page": "getLabelParamcd",
      "title": "Get label for a parameter code",
      "topics": [
        "getLabelParamcd"
      ]
    },
    {
      "page": "getLabelVar",
      "title": "Get label for a variable of the dataset",
      "topics": [
        "getLabelVar"
      ]
    },
    {
      "page": "getLabelVars",
      "title": "Get label of the variables in SAS dataset(s)",
      "topics": [
        "getLabelVars"
      ]
    },
    {
      "page": "getLinetypePalette",
      "title": "Get a linetype palette for clinical visualizations.",
      "topics": [
        "getLinetypePalette"
      ]
    },
    {
      "page": "getPaletteCDISC",
      "title": "Get standard palette for typical CDISC variables.",
      "topics": [
        "getPaletteCDISC"
      ]
    },
    {
      "page": "getSetDiff",
      "title": "Get additions/removals",
      "topics": [
        "getSetDiff"
      ]
    },
    {
      "page": "getShapePalette",
      "title": "Get a shape palette for clinical visualizations.",
      "topics": [
        "getShapePalette"
      ]
    },
    {
      "page": "knitPrintListObjects",
      "title": "Include a list of objects in a knitr document",
      "topics": [
        "knitPrintListObjects"
      ]
    },
    {
      "page": "knitPrintListPlots",
      "title": "Include a list of plots in a knitr document",
      "topics": [
        "knitPrintListPlots"
      ]
    },
    {
      "page": "loadDataADaMSDTM",
      "title": "Load data from ADaM/SDTM file(s).",
      "topics": [
        "loadDataADaMSDTM"
      ]
    },
    {
      "page": "mergeDiffWithData",
      "title": "Merge the 'diff.data' object from 'compareDiff' with the original 'newData' or 'oldData'.",
      "topics": [
        "mergeDiffWithData"
      ]
    },
    {
      "page": "mergeInputDiff",
      "title": "Custom merge of difference data with input data",
      "topics": [
        "mergeInputDiff"
      ]
    },
    {
      "page": "reorderColumns",
      "title": "Function for reordering columns",
      "topics": [
        "reorderColumns"
      ]
    },
    {
      "page": "roundHalfUp",
      "title": "Round a number with 'rounding up' strategy for rounding off a 5",
      "topics": [
        "roundHalfUp"
      ]
    },
    {
      "page": "roundHalfUpTextFormat",
      "title": "Round a number with 'round-up' strategy for rounding off a 5 in text format",
      "topics": [
        "roundHalfUpTextFormat"
      ]
    },
    {
      "page": "shapePaletteNRIND",
      "title": "Shape palette for a standard CDISC Normal/Reference Range Indicator.",
      "topics": [
        "shapePaletteNRIND"
      ]
    },
    {
      "page": "simpleCap",
      "title": "Capitalize the first letter of a word/sentence.",
      "topics": [
        "simpleCap"
      ]
    }
  ],
  "_readme": "https://github.com/openanalytics/clinutils/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bit",
    "bit64",
    "bslib",
    "cachem",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "crosstalk",
    "data.table",
    "digest",
    "DT",
    "evaluate",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "glue",
    "haven",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "jquerylib",
    "jsonlite",
    "knitr",
    "later",
    "lazyeval",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "otel",
    "pillar",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "progress",
    "promises",
    "R6",
    "rappdirs",
    "Rcpp",
    "readr",
    "rlang",
    "rmarkdown",
    "sass",
    "tibble",
    "tidyselect",
    "tinytex",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "clinUtils-vignette.Rmd",
      "filename": "clinUtils-vignette.html",
      "title": "Introduction to the clinUtils package",
      "author": "Laure Cougnaud and Michela Pasetto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data pre-processing",
        "Data import",
        "Example datasets",
        "ADaM",
        "SDTM",
        "Variable labels",
        "Get parameter label from its parameter code",
        "Visualizations",
        "Palette for CDISC variables",
        "Normal reference range indicators",
        "Get default palettes",
        "Tables",
        "Rounding",
        "Display data in an interactive table",
        "Comparison of tables",
        "Reporting",
        "Include list of objects in a Rmarkdown document",
        "Static visualizations (ggplot2)",
        "Interactive visualizations (plotly)",
        "htmltools::tagList",
        "Inclusion in a separated chunk",
        "Tables (flextable)",
        "Appendix",
        "Session info"
      ],
      "created": "2022-02-01 08:51:31",
      "modified": "2022-02-01 08:51:31",
      "commits": 1
    }
  ],
  "_score": 6.714664992862537,
  "_indexed": true,
  "_nocasepkg": "clinutils",
  "_universes": [
    "openanalytics",
    "lcougnaud"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:52.000Z",
      "distro": "noble",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "5899318a73a34d758b55d28b594501860c3b097bd771db97b66f9f7dbca070b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:54.000Z",
      "distro": "noble",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "30564b313aa1be72727639b7245adcc8029bde4e23922d51238b6541625194db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:32.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "32a892a729d8f6fc066406ca1f4490699dad7c1f31bf221ed49de18ab7ca8f59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:44.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "caddbd34da970c41f2eb4b3df64f07790fcf78ddc137a54c5a0c0c37dd1162ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-11T08:49:41.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "d07a0b8cf9e67ad9f406ad8695cb46f51a426d5e16833349ae3104b5ff1b8d98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:17.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "3e4eb8d1c63fb004b474eadd7588069ce16cfc2d9d40f60fc6c9684498447f4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-05-11T08:50:17.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "fd7a1a789f90a6ad7fdcaeb8afc3a0bd56223d152b72c7deaff646b1301e3420",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.2",
      "date": "2026-05-22T11:35:12.000Z",
      "commit": "18c0c8a7c25b92e47a0dfda5aa05c8f7e98d8a73",
      "fileid": "5737de41ea58ac82250fa0d9808c7d801bb647d679ae3466c95bff7d9d29063b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openanalytics/actions/runs/25659806264"
    }
  ]
}