R shiny guidance

Can someone guide regarding how to combine the ui and the server in R shiny?

Your question is ambiguous (to me) , can you be more descriptive with regards to what you mean ?

Add this to the end of your app.R:

shinyApp(ui = ui, server = server)