Defining code in the ui.R file

The other method of defining an HTML template is very similar, except in this case, the Shiny code is defined in the ui.R file. The server.R code is unchanged.

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.