pacman
pacman copied to clipboard
Non CRAN repos
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
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:
- checks for a local zip/tar.gz of the package
- checks cran for the package
- 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.
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.
Can this be closed?