From ripley at stats.ox.ac.uk  Sun Feb  9 10:10:17 2014
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 09 Feb 2014 09:10:17 +0000
Subject: [Rd] suggested addition to 'install.packages' help file
In-Reply-To: <52F3D386.5040006@pburns.seanet.com>
References: <52F3D386.5040006@pburns.seanet.com>
Message-ID: <52F745F9.4030302@stats.ox.ac.uk>

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



[Rd] suggested addition to 'install.packages' help file
Prof Brian Ripley