I-Math Shiny Server

Welcome to the Shiny Server at the University of Zurich Math Institute. Please read the wiki text for informations on how to use the Shiny Server. The Math Shiny Server currently supports normal R Documents and R Markdown Documents.

R Documents

Left you see a sample R Document, which is located in the Folder hello under sample-apps. You can simply include the document on any site using the iframe command and pointing it to the correct folder. You can either do that from this site on, or from another site in the uzh network.

You can interact with the application by scrolling the values. It will change the result accordingly. Shiny automatically renders any R application in HTML, so every R application is ready for the shiny server.

Implementation

To implement a new shiny application, simply move or create a folder under ~/public-html/ and move all the relevant shiny .R scripts into it. Afterwards open a terminal and run the command setwww. You can test it in your browser by opening the URL via shiny, http://shiny.math.uzh.ch/user/<NAME>/<FOLDER>. <NAME> refers to the name under which your personal userpage is located. Then use the iframe shown bellow to implement it on any institute website or simply share the direct shiny link to your application.

<iframe src="http://shiny.math.uzh.ch/user/<NAME>/<FOLDER>/" style="border: 1px solid #AAA; width: 290px; height: 500px"> Your Browser doesn't support iframe </iframe>

R Markdown

Right you see an Example of R Markdown. The Document is located in the Folder rmd under sample-apps again.

To interact with it, choose a value from the Region drop down menu.

Implementation

To implement it, you can again use the command shown bellow and copy it to your site or share the shiny link. Notice that the width and height was changed, to fit the application. Please adjust the style setting to your needs. Please replace the <NAME>/<FOLDER>/ part of the path, with the correct path to your R application. And don't forget to run setwww.

<iframe src="http://shiny.math.uzh.ch/user/<NAME>/<FOLDER>/" style="border: 1px solid #AAA; width: 290px; height: 480px"> Your Browser doesn't support iframe </iframe>

Thank you for reading this small introduction and I hope you have fun using the R Shiny Server.