[R] using install.packages via proxy
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Apr 12 15:20:15 CEST 2007
On Thu, 12 Apr 2007, Vladimir Eremeev wrote:
> What operating system do you use?
>
> If you use Windows, than open the Control Panel, double click on the System
> icon, go to "Advanced" tab, press
> "Environment variables" button, then press "New" to create one more new
> variable, enter "http_proxy" as the "Name" of variable, and
> "http://address.of.your.proxy:port" as its value.
For Windows, the rw-FAQ has two much more comprehensive (and accurate)
answers with examples!
[Please don't post partial answers to FAQs.]
> In unix you should consult with your shell manual for the proper command and
> proper startup script file
> (in bash, this would be export and ~/.bash_profile)
>
> You also could use Sys.putenv R function
Or the command line or .Renviron (preferred, I think). Please do not set
http_proxy globally: other programs may read it and have a different
format.
>
> Erbe, Nicole wrote:
>>
>> I'm trying to install rJava to use JRI in a Java program as JRI is a part
>> of rJava. There should be the option to install this package via
>> install.packages("rJava"). Unfortunately I'm connected to the internet via
>> a proxy. I have no idea how to tell R to connect via the proxy. The R-help
>> tells me something about environment variables like "http_proxy". But I
>> have no idea how and where to set these variable as I'm new to R. I don't
>> know whether this is the right way to solve my problem.
>>
>> Is there anyone out there who knows how to solve this problem? Any help is
>> appreciated.
>>
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list