removed install.package from server.R - shinyapp.io takes care of that for you. Changed library() to require()