Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shinyproxy basic basics (+ some general web knowledge)

The problem

While searching for ways to deploy shiny apps I stumbled across ShinyProxy. From what I understand it's an alternative for ShinyServer. However, I lack some (very basic) knowledge to follow the guide provided.

The questions

  1. Can ShinyProxy be installed just on any bought/rented server? Do I need to preinstall some other software?
  2. Where do I type in the commands provided in the ShinyProxy guide?
  3. Does Docker need to be installed on the server or is it a tool to deploy to the server and is thus installed locally?
  4. The ShinyProxy guide misses a point about installing ShinyProxy. Why? Is it not installed (or is installation so obvious)?
  5. I couldn't actually find instructions on how to run a shiny app with ShinyProxy.
like image 571
Siemkowski Avatar asked Oct 21 '16 13:10

Siemkowski


People also ask

What is ShinyProxy used for?

ShinyProxy is a novel, open source platform to deploy Shiny apps for the enterprise or larger organizations. Secured Embedding of Shiny Apps Since version 2.0. 1 ShinyProxy provides a REST API to manage (launch, shut down) Shiny apps and consume the content programmatically inside broader web applications or portals.

What is a shiny server?

Shiny Server is an open source back end program that makes a big difference. It builds a web server specifically designed to host Shiny apps. With Shiny Server you can host your apps in a controlled environment, like inside your organization, so your Shiny app (and whatever data it needs) will never leave your control.

Where can I host a shiny app?

Host your Shiny apps on the web in minutes with Shinyapps.io. It is easy to use, secure, and scalable. No hardware, installation, or annual purchase contract required.


1 Answers

The authors of ShinyProxy can probably provide a much better answer, but here is my understanding:

  1. Your server needs to support Java 8 and Docker (or you can install Java 8 and Docker on your server).
  2. Assuming you logon to your server via SSH, the commands will be typed in the SSH terminal.
  3. Yes Docker needs to be installed on the server
  4. It appears that ShinyProxy does not need to be installed. You just need to download it (the shinyproxy-0.5.0.jar file) to a location on the server, and then run java -jar shinyproxy-0.5.0.jar (in your SSH terminal)
  5. To run a Shiny app, you need to package it as an R package first, then build a Docker image for the R package. The app is then actually running inside a Docker container. You also need a configuration file to tell ShinyProxy where to look for your Docker image. Example is here https://github.com/openanalytics/shinyproxy-demo
like image 147
Xiongbing Jin Avatar answered Oct 01 '22 20:10

Xiongbing Jin