[R] download.file() / install.packages() from a url with a username and password

John Marsland john.marsland at wmgfunds.com
Thu Jun 30 12:10:18 CEST 2005


I am trying to create a repository for my own packages as an easy way  
to auto install packages on a number of servers.

Obviously, I am able to connect using install.packages() to CRAN  
without problems but when I specify my own repos I get an error:

 > install.packages(pkgs, repos="http://some.site.com")
Warnings message:
cannot open: HTTP status was '401 Authorisation Required'

I get a similar message if I try to use download.file() on the  
PACKAGES file.

I have tried the url in the form http://username:password@url.com.

Any ideas?

Regards,

John Marsland




More information about the R-help mailing list