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

John Sorkin jsorkin at grecc.umaryland.edu
Sat Apr 12 19:37:46 CEST 2014


Grand,
Thank you. I have been able to use my iPad to connect to a server running RStudio server as described in an earlier email and can use the virtual keyboard, which works but is not convenient as one needs to go from keyboard screen to another. 
My current problem is that while I can get everything to work when my iPad is on my local network, I don't know how to access my server from outside my LAN. I know my server's private IP address I know my cable modem's external IP address, but I have no idea what IP address to enter in my iPad, when my iPad is outside my LAN trying to access my server.
John

> On Apr 12, 2014, at 11:46 AM, "Frans Marcelissen <fransiepansiekevertje at gmail.com>" <fransiepansiekevertje at gmail.com> wrote:
> 
> Running rstudio (server) on an ipad.
> I do'nt have an ipad anymore, but some years ago I noticed that rstudio (server) worked fine on an ipad of you have a separate keyboard. It does not work with the virtual keyboard. The same is true with android tablets.
> Frans
> 
> 
> 2014-04-12 3:38 GMT+02:00 Roy Mendelssohn <roy.mendelssohn at noaa.gov>:
>> GIYF - Google VPN and iPad.
>> 
>> -Roy
>> 
>> On Apr 11, 2014, at 6:34 PM, "John Sorkin" <JSorkin at grecc.umaryland.edu> wrote:
>> 
>> > 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.
>> > ______________________________________________
>> > 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.
>> 
>> **********************
>> "The contents of this message do not reflect any position of the U.S. Government or NOAA."
>> **********************
>> Roy Mendelssohn
>> Supervisory Operations Research Analyst
>> NOAA/NMFS
>> Environmental Research Division
>> Southwest Fisheries Science Center
>> 1352 Lighthouse Avenue
>> Pacific Grove, CA 93950-2097
>> 
>> e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
>> voice: (831)-648-9029
>> fax: (831)-648-8440
>> www: http://www.pfeg.noaa.gov/
>> 
>> "Old age and treachery will overcome youth and skill."
>> "From those who have been given much, much will be expected"
>> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
>> 
>> ______________________________________________
>> 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.
> 

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