Patrick Burns
2014-Feb-06 18:25 UTC
[Rd] suggested addition to 'install.packages' help file
I suggest that there be an additional sentence in the explanation for the 'repos' argument in the help file for 'install.packages': If the repository is on a local drive, then the string should begin with \code{file:}, e.g., \code{"file:J:/Rrepos"}. Perhaps I'm missing some subtlety, but it makes things work in my case. Pat -- Patrick Burns pburns at pburns.seanet.com twitter: @burnsstat @portfolioprobe http://www.portfolioprobe.com/blog http://www.burns-stat.com (home of: 'Impatient R' 'The R Inferno' 'Tao Te Programming')
Prof Brian Ripley
2014-Feb-09 09:10 UTC
[Rd] suggested addition to 'install.packages' help file
On 06/02/2014 18:25, Patrick Burns wrote:> I suggest that there be an additional sentence > in the explanation for the 'repos' argument in > the help file for 'install.packages': > > If the repository is on a local drive, then the > string should begin with \code{file:}, e.g., > \code{"file:J:/Rrepos"}. > > > Perhaps I'm missing some subtlety, but it makes > things work in my case.You are (more than one). The help says repos: character vector, the base URL(s) of the repositories to use, A file:// scheme *is* a URL, but how to specify it correctly is described under ?url. 'Local drive' is a not a portable concept, but a repository on a file system mounted on the same machine may also be accessible via a http:// scheme. -- 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