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 [[alternative HTML version deleted]]
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, > > > 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Hi Jim, Thank you for the quick responding and information. Sincerely Daniel ________________________________ From: Jim Lemon <drjimlemon at gmail.com> Sent: Saturday, June 24, 2017 4:50 To: xianda deng Cc: r-help at r-project.org Subject: Re: [R] Execute R codes without installing R environment 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/ Deploying Desktop Apps with R | R-bloggers<https://www.r-bloggers.com/deploying-desktop-apps-with-r/> www.r-bloggers.com Step 1: Create a deployment skeleton. Because this technique uses portable apps, you can save yourself some time by creating a skeleton desktop deployment. Jim On Sat, Jun 24, 2017 at 5:26 AM, xianda deng <dengxianda2007 at hotmail.com> wrote:> 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-helpthz.ch/mailman/listinfo/r-help> stat.ethz.ch The main R mailing list, for announcements about the development of R and the availability of new code, questions and answers about problems and solutions using R ...> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.[[alternative HTML version deleted]]
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. -- Sent from my phone. Please excuse my brevity. On June 23, 2017 12:26:49 PM PDT, xianda deng <dengxianda2007 at hotmail.com> wrote:>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 > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
Got it. Thanks. Daniel Sent from my iPhone> On Jun 24, 2017, at 9:28 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > > 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. > -- > Sent from my phone. Please excuse my brevity. > >> On June 23, 2017 12:26:49 PM PDT, xianda deng <dengxianda2007 at hotmail.com> wrote: >> 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 >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code.