lockbox icon indicating copy to clipboard operation
lockbox copied to clipboard

lockbox:::get_available_cran_version() returns nlme 3.1-134 for R 3.4.3

Open russellpierce opened this issue 7 years ago • 0 comments

This issue rhymes with https://github.com/robertzk/lockbox/issues/109.

I'm installing some packages, e.g. {psych} and {broom}that have Imports on {nlme} which like in #109 is a recommended package. The version returned by our available.packages call (which doesn't have the R_version filter which restricts the view to packages compatible with our current version of R), is 3.1-134. However, 3.1-134 Depends on R >= 3.5.

The documentation for available.packages() states...

By default, the return value includes only packages whose version and OS requirements are met by the running version of R, and only gives information on the latest versions of packages.

We already de-dupe later on in the code (the only filter that doesn't seem to be addressed by the code above). Is there a compelling reason not to drop the filters?

Side note, head scratcher for me...

Adding R_version to the filter vector in the last position results in a package list that does not include {lme}. However, a call to available.packages() without a filter arg does return {lme} and at a version that is compatible with R 3.4.3 as does one where R_version is in the first position. If someone knows why that ought to be, I'd love to know.

russellpierce avatar Dec 06 '17 11:12 russellpierce