Shiny app inside a function not working.


I am trying to run the shinyApp inside a function as mentioned in the link

The code seems to be working but I don't see any charts generated. The reason I say that code runs is because I have print() messages at different location in my code to let me know what section is being run.

Any help here is highly appreciated.