'How to run scripts by selecting them from a dropdown menu in R Shiny app?

I am trying to create a shiny app where the user selects an R Markdown file from a drop down menu, and that file is then rendered in the app and the output of that file, a pdf file pops up.

I don't have trouble making a drop down menu, but I am struggling with how to code all of that in the server side of the script.

How would I be able to get a Shiny app to render an R markdown file from a drop down menu? Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source