[R] R, RStudio, and a server for my iPad.

John Sorkin JSorkin at grecc.umaryland.edu
Sat Apr 12 03:34:14 CEST 2014


David,
Thank you for your assistance. 
I have, in fact been able to get things to work, at least when my iPad is on my local network. I had to do the following:
(1) install Linux (I used linux Mint) on a computer on my LAN
(2) install R on the linux box (accomplished using the Mint package manager)
(3) install Rstudio and RStudio server on the linux box (accomplished using the Mint package manager)
(4) obtain the linux computer's internal IP address (obtained using ifconfig command entered at a terminal). The internal IP address was 192.168.0.101
(5) use a browser on my iPad (I used google chrome, I believe firefox would also work) to connect to the linux box, requesting a connection using port 8787
In the brower I entered http://192.168.0.101:8787
This works like a charm; I can now control RStudio, which runs on the Linux box, by typing on my iPad. I thus gain access to RStudio on my iPad, RStudio works exactly as if it were running directly on my iPad, hooray!
 
My remaining problem is to determine how I can gain access to the linux box from outside my LAN. I know the IP address of my cable router xx.xx.xx.xx (forgive me I am not listing my external IP address for security reasons), but I don't know how I can address the linux box from outside my LAN. Clearly I can't use 192.168.0.101 as it is an internal IP address, and I can't use the external IP address, xx.xx.xx.xx as it is the address of my cable box, not the address of the Linux box behind the cable modem. If I can figure how to address the linux box from outside my LAN my problem will be solved! If anyone can help me with this last problem I would be grateful. I know it is not strictly an R question, but in my case it is related to running R, at least on my iPad.
John


 
 
John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and 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) 
>>> David Winsemius <dwinsemius at comcast.net> 4/11/2014 9:06 PM >>>

On Apr 11, 2014, at 2:00 PM, John Sorkin wrote:

> I bemoan the fact that I can not run R or Rstudio on my iPad. 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 me to run R on the server.


I fear that the response so far has been focussing on RStudio when the desire at its minimum was to run interactive R session on an iPad. Why not use an SSH client to connect to a machine that recognizes the security keys?

https://itunes.apple.com/us/app/server-auditor-ssh-client/id549039908?mt=8

I think RServe could be the server end, but I do not know how graphics devices would be handled. Maybe just create pdfs on the server? Is there a sendfile function that an SSH client could receive and allow the iPad user to open? I think the stats-rosuda-devel mailing list might be the place to find experienced users of such techniques.

-- 
David.


> I have searched the web for a clear, simple answer on how to do this but can not find one. There are answers, but not for someone who has not built a Linux server. Can someone provide 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 or RStudio program available to me on my iPad? I can probably find guidance on how to build an Apache server under Linux.
> Thank you,
> John 
> 
> 
> 
> 
> John David Sorkin M.D., Ph.D.
> Professor of Medicine
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology and 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) 
> 
> Confidentiality Statement:
> 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. 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.

David Winsemius
Alameda, CA, USA



Confidentiality Statement:
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 mailing list