R functions to HTML

Looks like you have some sort of shinyapp you're building? It is going to be really tuff with only this bit of code to know what is going on. Try and make a reprex and we can try and help ( FAQ: How to do a minimal reproducible example ( reprex ) for beginners )