My Shiny app in RStudio closes in a minute

You may experience an issue when starting your Shiny app with R Markdown from the Run Document button where the window will close on it's own after some time. 

To work around this, navigate to your /resources/rstudio folder to see your *.Rmd files. 



You can now run the following two commands to initialize the R Markdown file as a Shiny app

library(rmarkdown)

The above command loads the R Markdown libraries required to run R Markdown files.

Knowing the R Markdown file you wish to start, you can initialize it using the following command.

rmarkdown::run('TestMarkdown.Rmd')

You should now see your app open in a new window.



Feedback and Knowledge Base