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

From: John Marsland <john.marsland_at_wmgfunds.com>
Date: Thu 30 Jun 2005 - 20:10:18 EST


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



R-help@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 Received on Thu Jun 30 20:19:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:07 EST