I have created some brilliant applications to paste into a single Rmarkdown file. I am using an Amazon ec2 Ubuntu machine to host my brilliant applications and rstudio. All working applications are on the server / srv / shiny -server.
To do this, I create another folder for one Rmarkdown file in / srv / shiny -server. Individual pieces are executed, but the Run Document command gives an error:
ERROR: cannot open connection
I am using the following R code :
```{r, echo=FALSE}
library(shiny)
shinyAppDir(
"/srv/shiny-server/App1",
options=list(
width="100%", height=550
)
)
```
```{r, echo=FALSE}
library(shiny)
shinyAppDir(
"/srv/shiny-server/App2",
options=list(
width="100%", height=550
)
)
```
source
share