warning: error in as.double: cannot coerce type 's4' to vector of type 'double'

Hi, welcome!

We don't really have enough info to help you out. To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one for a shiny app