I have created several shiny apps to embed in single Rmarkdown file. I am using Amazon ec2 Ubuntu machine for hosting my shiny apps and rstudio. All the working apps are at /srv/shiny-server.
To do this, I create another folder for Rmarkdown single file in /srv/shiny-server. The individual chunks are running but Run Document commands is giving an error:
ERROR: cannot open the connection
I am using following R markdown code:
### App 1 goes here
```{r, echo=FALSE}
library(shiny)
shinyAppDir(
"/srv/shiny-server/App1",
options=list(
width="100%", height=550
)
)
```
### App 2 goes here
```{r, echo=FALSE}
library(shiny)
shinyAppDir(
"/srv/shiny-server/App2",
options=list(
width="100%", height=550
)
)
```
## Likewise ...