[R] Create a "local" repository

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Sep 16 14:45:46 CEST 2007


On Wed, 12 Sep 2007, Uwe Ligges wrote:

>
>
> Scott Hyde wrote:
>> I'd like to create a small "local" repository that would be used to
>> install a package for a class of students at their home.  I don't want
>> to upload it to CRAN, as I don't think it should be disseminated at
>> that level.
>>
>> What I'd like to do is:
>>
>>> where="http://mysite.com/"
>>> install.packages("mypackage",contriburl=where)
>>
>> When I try this, (after placing my mypackage_1.0.tar.gz file in the
>> main directory of http://mysite.com/, it responds, in R, when I want
>> to install the package:
>>
>> Warning: unable to access index for repository http://mysite.com/
>>
>> What do I need to do?
>
> You need a PACKAGES file in that directory that gives an index which
> packages are available.
>
> See function write_PACKAGES() in package "tools".

See also the section on 'Setting up a package repository' in the R-admin 
manual.  Using 'contriburl' is _not_ setting up a repository, and one 
might as well do it properly and benefit from e.g. the automatic searching 
of multiple repositories.

-- 
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



More information about the R-help mailing list