Skip to content
Prev 44397 / 63424 Next

Can't install.packages() from local repo in 2.15.2

Hi Prof. Ripley,

There is in fact a parallel source repository (see my initial email):

L:/R/src/contrib

I had also run tools:write_PACKAGES() therein, generating an empty PACKAGES file as I have chosen not to release source packages.  

I would like to make two comments.

First, I believe the behaviour of install.packages isn't documented in at least the case that I found myself in. Namely, when the source package doesn't exist (and the src tree does exist), but the binary does, then the binary cannot be installed. Unless, of course, you specify the option install.packages.check.source = FALSE. I can confirm that this does resolve my error.
Second, the error message could be improved to better specify what is causing the problem.
This is a bit vague. My suggestion, would be for the error message, in the case I found myself in, to read something like:
The R version number is a red-herring, except to the extent that this check didn't (appear to) occur in R 2.15.1. But given that most users will know they are using R 2.15.2 and that the repo structure doesn't require you to drill down past 2.15, this ending doesn't make much sense to me.  

In any case, thanks for your hard work in giving us such great software to use. I really appreciate it.
On Sunday, 4 November 2012 at 8:32 PM, Prof Brian Ripley wrote: