Re: [R] Running R in Bash and R GUI

From: michael watson (IAH-C) <michael.watson_at_bbsrc.ac.uk>
Date: Fri, 25 May 2007 08:40:10 +0100

There are two things that occur. Firstly, I normally have to unset no_proxy:

%> unset no_proxy; R

Secondly, if for some reason http_proxy isn't being seen in R, you can use the Sys.putenv() function within R to manipulate the environment

-----Original Message-----
From: r-help-bounces_at_stat.math.ethz.ch
[mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of S.Hodgkinson_at_brighton.ac.uk
Sent: 24 May 2007 16:05
To: R-help_at_stat.math.ethz.ch
Subject: [R] Running R in Bash and R GUI

I have been trying to get the R and package update functions in the GUI version of R to work on my Mac.

Initially I got error messages that suggested I needed to set up the http_proxy for GUI R to use, but how can this be done?

I eventually got to the point of writing a .bash_profile file in the Bash terminal and setting the proxy addresses there.

I can now use my Bash terminal, invoke R, and run the update / install commands and they work!

The problem that still remains is that in the R console of the GUI R, the http_proxy is not seen and thus I cannot connect to CRAN or any other mirror using the GUI functions in the pull-down menus.

I get

> update.packages ()

Warning: unable to access index for repository http://cran.uk.r- project.org/bin/macosx/universal/contrib/2.5
>

Basically it still seems unable to access port 80.

Is there a way of solving this so that I can use both terminals rather than just everything through Bash?

Thanks

Steve Hodgkinson

University of Brighton



R-help_at_stat.math.ethz.ch 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.

R-help_at_stat.math.ethz.ch 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. Received on Fri 25 May 2007 - 07:48:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 May 2007 - 09:31:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.