Rmd works fine in R but not in shiny

Could you create a minimal reproducible example (reprex) of the rmd and shiny app (it's be awesome to have this on rstudio.cloud). Looking up examples of this error, it seems often associated with a table, and so to minimize things, it'd be useful to just give a reprex of the offending code-chunk.