Ingmar Schuster
2012-Jun-21 09:58 UTC
[Rd] Have download.packages consider non-CRAN repositories
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 -- Ingmar Schuster Natural Language Processing Group Department of Computer Science University of Leipzig Johannisgasse 26 04103 Leipzig, Germany Tel. +49 341 9732205 http://asv.informatik.uni-leipzig.de/en/staff/Ingmar_Schuster
Ingmar Schuster
2012-Jun-21 10:02 UTC
[Rd] Have download.packages consider non-CRAN repositories
I was not completely explicit on this part: everything works as expected when I do pass repos="file:///Users/..." as an option. Only I'm trying to eliminate the need for passing it. Ingmar 2012/6/21 Ingmar Schuster <ingmar.schuster at informatik.uni-leipzig.de>:> 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.-- Ingmar Schuster Natural Language Processing Group Department of Computer Science University of Leipzig Johannisgasse 26 04103 Leipzig, Germany Tel. +49 341 9732205 http://asv.informatik.uni-leipzig.de/en/staff/Ingmar_Schuster
Duncan Murdoch
2012-Jun-21 12:05 UTC
[Rd] Have download.packages consider non-CRAN repositories
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. Duncan Murdoch