clinDataReview
Clinical Data Review Tool
Description
Creation of interactive tables, listings and figures ('TLFs') and associated report for exploratory analysis of data in a clinical trial, e.g. for clinical oversight activities. Interactive figures include sunburst, treemap, scatterplot, line plot and barplot of counts data. Interactive tables include table of summary statistics (as counts of adverse events, enrollment table) and listings. Possibility to compare data (summary table or listing) across two data batches/sets. A clinical data review report is created via study-specific configuration files and template 'R Markdown' reports contained in the package.
Downloads
436
Last 30 days
7978th
818
Last 90 days
818
Last year
Trend: +14.1% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (14 non-OK)
*
examples
Running examples in ‘clinDataReview-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: sunburstClinData
> ### Title: Sunburst interactive plot.
> ### Aliases: sunburstClinData
>
> ### ** Examples
>
> library(clinUtils)
>
> data(dataADaMCDISCP01)
> labelVars <- attr(dataADaMCDISCP01, "labelVars")
>
> dataAE <- dataADaMCDISCP01$ADAE
> dataDM <- dataADaMCDISCP01$ADSL
>
> ## example of basic sunburst:
>
> # sunburst takes as input table with counts
> if (requireNamespace("inTextSummaryTable", quietly = TRUE)) {
+
+ # total counts: Safety Analysis Set (patients with start date for the first treatment)
+ dataTotal <- subset(dataDM, RFSTDTC != "")
+
+ # compute adverse event table
+ tableAE <- inTextSummaryTable::getSummaryStatisticsTable(
+
+ data = dataAE,
+ rowVar = c("AESOC", "AEDECOD"),
+ dataTotal = dataTotal,
+ rowOrder = "total",
+ labelVars = labelVars,
+ stats = inTextSummaryTable::getStats("count"),
+
+ # plotly treemap requires records (rows) for each group
+ rowVarTotalInclude = "AEDECOD",
+ outputType = "data.frame-base"
+
+ )
+
+ dataSunburst <- tableAE
+
+ dataSunburst$n <- as.numeric(dataSunburst$n)
+
+ # create plot
+ sunburstClinData(
+ data = dataSunburst,
+ vars = c("AESOC", "AEDECOD"),
+ valueVar = "n",
+ valueLab = "Number of patients with adverse events"
+ )
+
+ ## example where sum(counts) of child = counts of parent
+
+ # counts of patients per arm/site
+ tableDM <- inTextSummaryTable::getSummaryStatisticsTable(
+ data = dataDM,
+ rowVar = c("ARM", "SITEID"),
+ labelVars = labelVars,
+ # plotly treemap requires records (rows) for each group
+ rowVarTotalInclude = "SITEID",
+ rowTotalInclude = TRUE,
+ outputType = "data.frame-base"
+ )
+ tableDM$statN <- as.numeric(tableDM$statN)
+
+ # create the plot
+ sunburstClinData(
+ data = tableDM,
+ vars = c("ARM", "SITEID"),
+ valueVar = "statN", valueLab = "Counts of patients",
+ valueType = "total",
+ caption = "The sectors are colored by category.",
+ subtitle = "Group: treatment and site"
+ )
+
+ }
Error in basename(x) : a character vector argument expected
Calls: <Anonymous> ... file_ext -> ifelse -> grepl -> is.factor -> basename
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
scatterplotClinData 7.551 0.224 9.944
*
*
*
*
installed package size
installed size is 5.7Mb
sub-directories of 1Mb or more:
doc 4.3Mb
installed package size
installed size is 5.6Mb
sub-directories of 1Mb or more:
doc 4.3Mb
installed package size
installed size is 5.6Mb
sub-directories of 1Mb or more:
doc 4.3Mb
*
*
*
*
*
Check History
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
examples
Running examples in ‘clinDataReview-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: sunburstClinData
> ### Title: Sunburst interactive plot.
> ### Aliases: sunburstClinData
>
> ### ** Examples
>
> library(clinUtils)
>
> data(dataADaMCDISCP01)
> labelVars <- attr(dataADaMCDISCP01, "labelVars")
>
> dataAE <- dataADaMCDISCP01$ADAE
> dataDM <- dataADaMCDISCP01$ADSL
>
> ## example of basic sunburst:
>
> # sunburst takes as i
installed package size
installed size is 5.7Mb
sub-directories of 1Mb or more:
doc 4.3Mb
installed package size
installed size is 5.6Mb
sub-directories of 1Mb or more:
doc 4.3Mb
installed package size
installed size is 5.6Mb
sub-directories of 1Mb or more:
doc 4.3Mb