Skip to content

Commit 5acaea0

Browse files
committed
Update format_ae_forestly() to display the full text for the treatment labels
1 parent 96a49d1 commit 5acaea0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

R/format_ae_forestly.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,13 @@ format_ae_forestly <- function(
253253
columnGroups <- list()
254254
for (i in 1:m_group) {
255255
columnGroups[[i]] <- reactable::colGroup(
256-
name = paste0(outdata$group[i], "<br> (N=", outdata$n_pop[i], ")"),
256+
name = paste0(
257+
'<span title="',
258+
paste0(outdata$group[i], " (N=", outdata$n_pop[i], ")"),
259+
'">',
260+
paste0(outdata$group[i], "<br> (N=", outdata$n_pop[i], ")"),
261+
'</span>'
262+
),
257263
html = TRUE,
258264
columns = c(name_n[i], name_prop[i])
259265
)

0 commit comments

Comments
 (0)