Sample code:
selectInput(inputId = "sampleDataset",
label = "Choose Dataset",
choices = c('boston', 'auto_mpg', 'red_wine'),
selected = "boston")
data_preloaded <- reactive({
get(input$sampleDataset)
})
var_name <- data_preloaded() #> not working