[R] Password protected R Repository
Uwe Ligges
ligges at statistik.tu-dortmund.de
Wed Sep 28 16:57:20 CEST 2011
On 28.09.2011 15:51, Stefan Petersson wrote:
> Prof Brian Ripley<ripley<at> stats.ox.ac.uk> writes:
>
>>
>> Who said that RCurl::getURL worked with install.packages?
>> (At least, I assume this is from RCurl: you did not mention it.)
>>
>> install.packages() first calls available.packages(), and that uses
>> download.file to get the PACKAGES[.gz] file. It then calls
>> download.file to get the packages.
>>
>> So please read the help for download.file (as the help pages say), and
>> try the solutions described there.
>>
>> On Wed, 28 Sep 2011, Stefan Petersson wrote:
>>
>
> The helpfiles for 'download.file' was not that helpful. But maybe it's just me
> not being able to read them correctly.
Yes, looks like this is the case.
> I tried to call install.packages with the 'method=wget', and hoped for a
> username and password dialog. But no luck.
The help page says "if proper values are stored in the configuration
file for wget", so why do you expect a dialog?
Best,
Uwe Ligges
> Other than that, I see no arguments
> that relates to my problem under ?download.file. Which btw is 'installing an R
> library from a password protected URL (Apache Basic Authentication)'.
>
> Actually, nobody said that RCurl::getURL would work with install.packages, but
> from what was written in a post somewhere I jumped to the (false) conclusion
> that it would work. That's why I tried it.
>
> Any hints would be greatly appreciated!
>
> ______________________________________________
> 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.
More information about the R-help
mailing list