-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
What is your question?
The function variable_type_icons
exists in two places:
tmg:
teal.modules.general/R/utils.R
Lines 237 to 251 in a835f3d
variable_type_icons <- function(var_type) { | |
checkmate::assert_character(var_type, any.missing = FALSE) | |
class_to_icon <- list( | |
numeric = "arrow-up-1-9", | |
integer = "arrow-up-1-9", | |
logical = "pause", | |
Date = "calendar", | |
POSIXct = "calendar", | |
POSIXlt = "calendar", | |
factor = "chart-bar", | |
character = "keyboard", | |
primary_key = "key", | |
unknown = "circle-question" | |
) |
teal.widgets:
https://github.com/insightsengineering/teal.widgets/blob/d94641a1d7e532bef125e229cfc2407fd0d32d43/R/optionalInput.R#L323-L337
They're identical and I think they should live in teal.widgets
.
Should we remove the one in tmg?
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
llrs-roche and averissimo