Skip to content

Execute R codes without installing R environment

5 messages · Jim Lemon, Jeff Newmiller, xianda deng

#
Hi,


I have some issues with running R in our server and hope you would like to help me.


My Target: Running R codes without installing R environment in our server. Server OS: windows


my attempts: I tried to build the R codes into a Binary package with R studio, but I don't how to execute the binary package(*.zip file).


My questions:  1. Is this a correct solution, which builds the R codes into a binary file, to run a R codes without installing R environment?

                             2. If answer for question 1 is yes, how should I execute or call the R script?

                            3. Is any another way to achieve my goal?


Thanks!


Sincerely


Daniel
#
Hi Daniel,
There seems to be a way to package the R interpreter and a program
into an executable file. It looks pretty complicated and would only be
worth the effort if you _must_ run your script this way and you
_can't_ install R.

https://www.r-bloggers.com/deploying-desktop-apps-with-r/

Jim
On Sat, Jun 24, 2017 at 5:26 AM, xianda deng <dengxianda2007 at hotmail.com> wrote:
#
Hi Jim,


Thank you for the quick responding and information.


Sincerely


Daniel
#
1) Producing a zip file most likely means you put your code in a package. This can be a useful thing to do,  but it most definitely does not create a standalone executable. 

3) You have not communicated your goal clearly. Many people want to treat R on a server as a remote compute resource... you might want to look at the OpenCPU project if that is your goal. Alternatively,  using ssh to remotely invoke R at the command line using the parallel package is well supported on Unix-ish operating systems, but that can be more tricky on a Windows server and requires that R be installed.  Other people want to log on to their server gui and run code interactively because the server has more RAM/CPU cores/disk space... for that you also need to get R installed first.  These options definitely involve the assistance of your sysadmin. If you are trying to get R running without that assistance there are portable installs of R, but you still need the approval of your sysadmin.
#
Got it. Thanks. 

Daniel

Sent from my iPhone