RShiny - How to distribute the application on the network

I created an R Shiny app that I would like to share with my employees on my network. I tried to place the application on my computer so that other users from the network could access it and use it with their data files.

I tried:

runApp("appname",host="0.0.0.0",port=3986) 

And:

  runApp("appname",host="DNSMachinename") 

The last attempt resulted in the following error:

While my colleagues can use the application, it does not work as it does on my machine. Thanks for the help.

+5
source share
3 answers

The shiny list is a few ways to share your application . I, in particular, place the zip file somewhere with the application, and letting your employees use runUrl to automatically download the application and run it locally. Thus, users can continue to use the latest version of the application, but do not work on your computer.

+3
source

Since you showed interest in the Shiny server, and it would be more convenient for me to just put a few thoughts into the “answer”, since it will not fit in well with the comment.

Since you have a group, and I highly recommend you take a look at the R server and the brilliant server.

(1) Brilliant server

You can completely install the Shiny server on an old computer, and I would recommend using Linux-OS as (Ubuntu), and this will save you some time after the tutorial. We have a cluster, and we used one of the servers there to host the brilliant server and brilliant server at the same time. And only an internal employee can access him, and he is inside the company’s network.

(2) R server

I'm not quite sure which environment you use to program R, but if you want to evangalize R in your command. You have a stable environment, access to which everyone in your company with authentication is a good way to get started.

(3) shinyapps.io

It is a free platform on which you can host your brilliant application, it is in the alpha version, and I do not think that it has a lot of authentication or security. HERE enter the link here - an example posted on shinyapps.io

(4) AWS Free Level

If you've never used AWS before, you can have a micro copy running AWS for free for one year! I would highly recommend using AWS instead of F * with your old computer.

+2
source

If you are still trying to get a buy-in for your server or cloud solution, I just finished developing RInno for this exact problem, that is, when the company will not pay for Shiny Server or there are security problems with cloud services.

To start:

 install.packages("RInno") require(RInno) RInno::install_inno() 

Then you just need to call two functions to create the installation framework:

 create_app(app_name = "myapp", app_dir = "path/to/myapp") compile_iss() 

If you want to enable R for your colleagues who don't have one, add include_R = TRUE to create_app :

 create_app(app_name = "myapp", app_dir = "path/to/myapp", include_R = TRUE) 

By default, it includes shiny, magrittr and jsonlite, so if you use other packages like ggplot2 or plotly, just add them to the pkgs argument. You can also include GitHub packages in the remotes argument:

 create_app( app_name = "myapp", app_dir = "path/to/myapp" pkgs = c("shiny", "jsonlite", "magrittr", "plotly", "ggplot2"), remotes = c("talgalili/installr", "daattali/shinyjs")) 

For other features, check out FI Labs - RInno

+1
source

Source: https://habr.com/ru/post/1202798/


All Articles