shiny code with seurat object
Not easy to reproduce your error but here is my guess. This is a string, you can check it:
input$dataset
class(input$dataset)

This is a simple solution. If you want to call out the dataset depending on input, use a list:
set_1 &lt;- readRDS(&quot;/temp2/data/mydataB10.rds&quot;)
set_2 &lt;- readRDS(&quot;/temp2/data/mydataB5.rds&quot;)
data_list = list(set_1=set_1,set_2=set_2)

Then in the server :
datasetInput &lt;- reactive({
        df &lt;- data_list[[input$dataset]]
            })