Hello! newbie to shiny.
I want to give a number of simulations input. I want the possible values to be displayed as "1e2, 1e3,...,1e6" but the SliderTextInput converts the scientific notation, altough entered as characters to numeric. Is there any way to force shiny to display "1e2" as "1e2" (which then later can be used as numeric in the server) and not 100?
thanks
if (interactive()) {
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
br(),
shinyWidgets::sliderTextInput(
inputId = "n_sim_binary",
label = "Number of simulations. NB Log Scale",
choices = as.character(c("a", "1e2", "c")),
selected = as.character("a"),
grid = T)
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
}