Brilliant with portable R?

To create some web services with R, I usually use RApache , but I want to look at Shiny to see what it can do. The problem is that for this situation, when I intend to use it, I do not have a server where I can run R and brilliant, and also can not transfer data to another computer where it works. I only have a desktop, and I want to show the Shiny application to other users without installing R on my desktops and without worrying about this installation.

Hence my question. Is it possible that I installed R portable - http://sourceforge.net/projects/rportable/files/R-Portable/ on a shared disk that is shared with colleagues and that the Shiny application can interact with portable R. If possible, who I tried it and am ready to share my code to prove that it works?

+7
source share
2 answers

This should work fine, assuming you can configure R-Portable to a portable package library. Shiny does not start R, you start R, and then from there download and launch your brilliant application (using shiny::runApp() ), and then the browser and the R-process exchange data via TCP.

If your applications do not have to be private, you can also apply for an account on your own Shiny-server RStudio. It is free in beta. https://rstudio.wufoo.com/forms/shiny-server-beta-program/

+3
source

OS: Windows 7 - 64 bit

Follow the steps in the link below, except for creating one batch file to launch a brilliant application, since the offer to launch a web browser in this web link does not work (the web browser opens without the contents of the application), at least for me.

This batch of script finds UNUSED UNPRIVILEGED PORT and uses it to open the local web application ( Portable R Shiny App ) using the Chrome Chrome portable browser from a USB drive. In the above web link, the author’s proposal to create separate runShinyApp.R and run.bat is reduced to one batch file, as described below.

 @echo off title 'My Shiny APP' setlocal ENABLEDELAYEDEXPANSION for /l %%X in (1025,1,65535) do ( netstat -o -n -a | findstr :%%X if !ERRORLEVEL! neq 0 ( set avail_port=%%X goto eof ) ) :eof SET ROPTS=--no-save --no-environ --no-init-file --no-restore --no-Rconsole start "" ".\GoogleChromePortable\App/Chrome-bin/chrome.exe" "http://localhost:!avail_port!/" R-Portable\App\R-Portable\bin\Rscript.exe %ROPTS% -e "require(methods); shiny::runApp('./shiny', launch.browser = FALSE, port = !avail_port!)" 1> ShinyAppOut.log 2> ShinyAppMsg.log 
+2
source

All Articles