I want to directly use some selectInput
in a boolean way. Is there a possibility to do so?
Have a look at my minimal example:
ui <- fluidPage(
selectInput("in", "some input", choices = c("0"=F, "1"=T))
)
server <- function(input, output, session) {
test_data <- read.csv("testfile",
header= input$in,
sep= ";")
}
Normal tricks to remove quotes (as desribed here) won't do the trick. I've also tried to force R to treat the input's output to be logical (via as.logical
) and I've tried something simple as print(..., quote=F)
. Nothing worked...