pacman icon indicating copy to clipboard operation
pacman copied to clipboard

Non CRAN repos

Open trinker opened this issue 11 years ago • 3 comments
trafficstars

In the provious code for p_load we had this phrase:

if not it attempts to install the package from CRAN and/or any other repository

This indicates that we could install from non-CRAN repos. I don't know if this is true. If it is I don't know how it worked. I doubt it works any longer but may be wrong as when I recoded p_load and p_install I didn't have this in mind. I suspect p_set_cranrepo may do this. It's be cool if it does it automatically as I did include this in line 130 of: https://github.com/trinker/pacman/blob/master/R/p_install.R in the p_install_cran helper function.

This was after the last series of commits: https://github.com/trinker/pacman/commit/b56d2f64bd2aaddf634ba206ab403415db4d3f76

trinker avatar Feb 09 '14 03:02 trinker

If this functionality existed it is definitely broken. In the helper function: p_source_type, line 226 I use p_iscran which only checks against cran packages.

Basically the way p_source_type works is it:

  1. checks for a local zip/tar.gz of the package
  2. checks cran for the package
  3. assumes github if 1 & 2 are false

I don't know how you were checking other repos before. Well maybe it's not broken but in any event I don't even know how to test this.

trinker avatar Feb 09 '14 03:02 trinker

If you use install.packages then it checks the repos in getOption("repos"). Since that is what p_load uses by default that is how that worked. That is how we install from Ripley's repo seamlessly.

Dasonk avatar Feb 09 '14 04:02 Dasonk

Can this be closed?

trinker avatar Jul 02 '14 03:07 trinker