[R] R, RStudio, and a server for my iPad.
JSorkin at grecc.umaryland.edu
Sat Apr 12 00:05:10 CEST 2014
Are you suggesting that all I need to is build a Linux box (easily
done, I have done many) and them simply use the package manager to
install RStudio server? This would mean I don't need to build an Apache
Server with a LAMP stack, hooray!
John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and
Baltimore VA Medical Center
10 North Greene Street
Baltimore, MD 21201-1524
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
>>> Steve Lianoglou <lianoglou.steve at gene.com> 4/11/2014 5:51 PM >>>
I see. You might indeed be over thinking it ... since everything is
installable by the package manager for the flavor of linux you choose,
it should actually be relatively straightfoward (although if this is
your first time setting up a linux box, it can take a few tries).
I'll assume you are using an ubuntu server. There are two things you
can do to get one
(1) Get yourself a "spare" CPU. Blow out the OS on it, and setup
"vanilla" ubuntu; or
(2) Rent an ubuntu server from somewhere like linode.com
(a) Install R on it, by following the instructions here:
Which boils down to basically:
(i) adding the appropriate line to your `/etc/apt/sources.list` given
the version of ubuntu you installed (saucy, quantal, etc) ; and
(ii) Running the following from the terminal:
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
(b) Install RStudio Server. Start from the "Download and Install"
section here (since you already installed R):
Then go here:
If you've set this up on your own machine (option (1) from above) then
you have to figure out how to connect it to the internet if you want
to use it from anywhere outside of your LAN.
It might seem like a lot of work, but as mentioned above -- since
these packages are available by the system's package manager, all of
the dependencies (like apache (if you need it)) will be installed for
you if you follow the (presumably correct) installation instructions
=== An even easier setup ===
Just realized that there is 3rd route. You can save yourself a lot of
time by using an already built amazon machine instance that the
bioconductor folks have setup for you. Look at the instructions here:
If you follow along (you'll need an amazon account), you can rent a
machine and have it loaded w/ RStudio Server as well as some
bioconductor-specific libraries to get you started (by using the
bioconductor AMI). Once you have that up, you can connect to the
server running on Amazon's cloud via your web browser on both your CPU
(to make sure it all worked) then using an iOS device.
This would be a very easy way for you to see if taking one of the 2
avenues of setting up RStudio Server yourself would be worth the pain.
On Fri, Apr 11, 2014 at 2:34 PM, John Sorkin
<JSorkin at grecc.umaryland.edu> wrote:
> Thank you for your help.
> I have seen the material you have sent me to, but do not fully
> understand it. Do I have to build a linux server first? If so does
> have to run Apache or some other web server? Is RStudio server run
> Apache, if so how? On the other hand, do I simply need a box running
> flavor of Linux (without Apache)., and then simply download RStudio
> server? Perhaps I am over thinking this . . .
> John David Sorkin M.D., Ph.D.
> Professor of Medicine
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology
> Geriatric Medicine
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)
>>>> Steve Lianoglou <lianoglou.steve at gene.com> 4/11/2014 5:23 PM >>>
> On Fri, Apr 11, 2014 at 2:00 PM, John Sorkin
> <JSorkin at grecc.umaryland.edu> wrote:
>> I bemoan the fact that I can not run R or Rstudio on my iPad.
> I feel like this is something I'm not missing much, at all, but
> different strokes ... :-)
>> A possible work around would be to set up a server (probably under
> Linux), and get the server to present a web page that to would allow
> to run R on the server. I have searched the web for a clear, simple
> answer on how to do this but can not find one. There are answers,
> not for someone who has not built a Linux server. Can someone
> either a reference to, or a short explanation of how I can build the
> server, get R or RStudio to run on it, and get the server and its R
> RStudio program available to me on my iPad? I can probably find
> on how to build an Apache server under Linux.
> You might try to follow the instructions to get RStudio Server
> It seems like they have packages built for many popular linux
> Once your linux server is set up, you should be able to access the
> server with any client via a web browser, although I have no idea if
> any of the iOS browsers are up to the task of dealing with the
> web interface, but you can try and find out. RStudio's support forum
> is more likely to be helpful here, for instance:
> Steve Lianoglou
> Computational Biologist
> Confidentiality Statement:
> This email message, including any attachments, is for the sole use
> the intended recipient(s) and may contain confidential and
> information. Any unauthorized use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact
> sender by reply email and destroy all copies of the original
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
This email message, including any attachments, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.
More information about the R-help