For the complete documentation index, see llms.txt. This page is also available as Markdown.

Running RShiny in Code Ocean

Interactive web applications can be created and shared in R (using the shiny library) with the Shiny Cloud Workstation.

To automatically load a Shiny app when opening the Shiny Cloud Workstation, place the appropriate Shiny files in the root of the /code folder. You can use either a single app.R file, or the two-file pair server.R and ui.R.These files cannot be located in subdirectories.

If your Shiny app files (app.R, or server.R and ui.R) are in nested subdirectories within the /code folder, upon opening the Shiny Cloud Workstation the contents of /code will be listed with hyperlinks to all files and folders. To load your Shiny app in this case, navigate to the folder containing your Shiny app files and click to open the app.

Was this helpful?