If you deploy the template Shiny app in RStudio but add the rvest package and a call to a function from it; for instance adding:
library(rvest)
new_links <- tmp_html %>% html_nodes("a") %>% xml_attr("href")
to server.R, it will fail and the error logs show:
2016-07-30T00:23:46.131743+00:00 shinyapps[117519]: shiny version: 0.12.2
2016-07-30T00:23:46.308504+00:00 shinyapps[117519]: Starting R with process ID: '18'
2016-07-30T00:23:46.131747+00:00 shinyapps[117519]: rmarkdown version: NA
2016-07-30T00:23:46.131747+00:00 shinyapps[117519]: knitr version: NA
2016-07-30T00:23:46.131748+00:00 shinyapps[117519]: jsonlite version: 0.9.17
2016-07-30T00:23:46.131748+00:00 shinyapps[117519]: RJSONIO version: NA
2016-07-30T00:23:46.131748+00:00 shinyapps[117519]: htmltools version: 0.2.6
2016-07-30T00:23:46.305438+00:00 shinyapps[117519]: Using jsonlite for JSON processing
2016-07-30T00:23:46.312912+00:00 shinyapps[117519]: Listening on http://0.0.0.0:55910
2016-07-30T00:23:46.413075+00:00 shinyapps[117519]: Loading required package: xml2
2016-07-30T00:23:49.635010+00:00 shinyapps[117519]: Error in do.call(method, list(parsed_selector)) :
2016-07-30T00:23:49.635015+00:00 shinyapps[117519]: could not find function "xpath_element"