Re: [Rd] Have download.packages consider non-CRAN repositories

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Thu, 21 Jun 2012 14:43:12 +0200

On 21.06.2012 14:05, Duncan Murdoch wrote:
> On 12-06-21 5:58 AM, Ingmar Schuster wrote:
>> Hi List,
>>
>> I've set up a CRAN-like repository (not a CRAN mirror) on the local
>> filesystem (this will change to http in the future). R has been told
>> about this repository using the following entry in
>> R_HOME/etc/repositories:
>> PMR2 PMR2 file:///Users/arbeit/Documents/clarin/Open_Science/PMR2/
>> TRUE TRUE FALSE FALSE
>>
>> Now I expected download.packages(), install.packages() etc. to look
>> for packages in "/Users/arbeit/Documents/clarin/Open_Science/PMR2/"
>> without passing them repos="file:///Users/..." as an option. That
>> doesn't happen and I'm not completely sure why. Did I misinterpret the
>> role of R_HOME/etc/repositories or is it possible I made a mistake?
>>
>> A related question is this: my PMR2 repo provides source packages
>> only. Is there a way to tell a lokal R installation to look for source
>> packages _only_ for this specific repo and use binary packages for
>> CRAN?
>>
>> Thanks a lot
>> Ingmar
>>
>
> You need to set the "repos" option to change the default repository. The
> setRepositories() function does that using the file you edited.

And note that is must be a complete repository, i.e. packages in subdir "./src/contrib". A user can use install.packages(....., type="source") if you do not provide binaries in case they are expected by default.

Uwe Ligges

>
> Duncan Murdoch
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 21 Jun 2012 - 12:47:55 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2012 - 22:10:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive