Skip to content

Commit d0865d1

Browse files
committed
merge
Merge branch 'test@bslib@main' into report_redesign_poc@main # Conflicts: # R/tm_a_regression.R
2 parents 1f68993 + d735da6 commit d0865d1

File tree

5 files changed

+36
-37
lines changed

5 files changed

+36
-37
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Depends:
3030
teal (>= 0.16.0.9000),
3131
teal.transform (>= 0.6.0)
3232
Imports:
33+
bslib (>= 0.8.0),
3334
checkmate (>= 2.1.0),
3435
colourpicker (>= 1.3.0),
3536
dplyr (>= 1.0.5),

R/tm_a_regression.R

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ ui_a_regression <- function(id, ...) {
285285
tags$div(verbatimTextOutput(ns("text")))
286286
)),
287287
encoding = tags$div(
288-
tags$label("Encodings", class = "text-primary"),
288+
tags$label("Encodings", class = "text-primary"), tags$br(),
289289
teal.transform::datanames_input(args[c("response", "regressor")]),
290290
teal.transform::data_extract_ui(
291291
id = ns("response"),
@@ -312,12 +312,10 @@ ui_a_regression <- function(id, ...) {
312312
teal.widgets::optionalSliderInput(
313313
ns("outlier"),
314314
tags$div(
315-
class = "teal-tooltip",
316315
tagList(
317316
"Outlier definition:",
318-
icon("circle-info"),
319-
tags$span(
320-
class = "tooltiptext",
317+
bslib::tooltip(
318+
icon("fas fa-circle-info"),
321319
paste(
322320
"Use the slider to choose the cut-off value to define outliers.",
323321
"Points with a Cook's distance greater than",
@@ -343,16 +341,16 @@ ui_a_regression <- function(id, ...) {
343341
teal.widgets::optionalSliderInputValMinMax(
344342
inputId = ns("label_min_segment"),
345343
label = tags$div(
346-
class = "teal-tooltip",
347344
tagList(
348345
"Label min. segment:",
349-
icon("circle-info"),
350-
tags$span(
351-
class = "tooltiptext",
352-
paste(
353-
"Use the slider to choose the cut-off value to define minimum distance between label and point",
354-
"that generates a line segment.",
355-
"It's only valid when 'Display outlier labels' is checked."
346+
bslib::tooltip(
347+
icon("circle-info"),
348+
tags$span(
349+
paste(
350+
"Use the slider to choose the cut-off value to define minimum distance between label and point",
351+
"that generates a line segment.",
352+
"It's only valid when 'Display outlier labels' is checked."
353+
)
356354
)
357355
)
358356
)

R/tm_g_distribution.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,13 @@ ui_distribution <- function(id, ...) {
337337
teal.widgets::optionalSelectInput(
338338
ns("t_dist"),
339339
tags$div(
340-
class = "teal-tooltip",
341340
tagList(
342341
"Distribution:",
343-
icon("circle-info"),
344-
tags$span(
345-
class = "tooltiptext",
346-
"Default parameters are optimized with MASS::fitdistr function."
342+
bslib::tooltip(
343+
icon("circle-info"),
344+
tags$span(
345+
"Default parameters are optimized with MASS::fitdistr function."
346+
)
347347
)
348348
)
349349
),

R/tm_missing_data.R

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ encoding_missing_data <- function(id, summary_per_patient = FALSE, ggtheme, data
392392
checkboxInput(
393393
ns("any_na"),
394394
tags$div(
395-
class = "teal-tooltip",
396395
tagList(
397396
"Add **anyna** variable",
398-
icon("circle-info"),
399-
tags$span(
400-
class = "tooltiptext",
401-
"Describes the number of observations with at least one missing value in any variable."
397+
bslib::tooltip(
398+
icon("circle-info"),
399+
tags$span(
400+
"Describes the number of observations with at least one missing value in any variable."
401+
)
402402
)
403403
)
404404
),
@@ -408,15 +408,15 @@ encoding_missing_data <- function(id, summary_per_patient = FALSE, ggtheme, data
408408
checkboxInput(
409409
ns("if_patients_plot"),
410410
tags$div(
411-
class = "teal-tooltip",
412411
tagList(
413412
"Add summary per patients",
414-
icon("circle-info"),
415-
tags$span(
416-
class = "tooltiptext",
417-
paste(
418-
"Displays the number of missing values per observation,",
419-
"where the x-axis is sorted by observation appearance in the table."
413+
bslib::tooltip(
414+
icon("circle-info"),
415+
tags$span(
416+
paste(
417+
"Displays the number of missing values per observation,",
418+
"where the x-axis is sorted by observation appearance in the table."
419+
)
420420
)
421421
)
422422
)

R/tm_variable_browser.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -435,15 +435,15 @@ srv_variable_browser <- function(id,
435435
sliderInput(
436436
inputId = session$ns("outlier_definition_slider"),
437437
tags$div(
438-
class = "teal-tooltip",
439438
tagList(
440439
"Outlier definition:",
441-
icon("circle-info"),
442-
tags$span(
443-
class = "tooltiptext",
444-
paste(
445-
"Use the slider to choose the cut-off value to define outliers; the larger the value the",
446-
"further below Q1/above Q3 points have to be in order to be classed as outliers"
440+
bslib::tooltip(
441+
icon("circle-info"),
442+
tags$span(
443+
paste(
444+
"Use the slider to choose the cut-off value to define outliers; the larger the value the",
445+
"further below Q1/above Q3 points have to be in order to be classed as outliers"
446+
)
447447
)
448448
)
449449
)

0 commit comments

Comments
 (0)