gmbecker / switchr

An R package for managing and seamlessly switching between sets of installed R packages.
http://google.com AND http://blabla.com
59 stars 6 forks source link

make cran mirror configurable #18

Open waddella opened 1 year ago

waddella commented 1 year ago

@gmbecker as discussed in person, it would be good if we could optionally control which CRAN mirror switcher chooses to use.

gmbecker commented 1 year ago

@waddella I'm generally leery of options which control behavior. Is there a pressing reason not to have the base cran url not simply be a parameter to the function.

Also, importantly, note that if the cran mirror you point to doesn't have the /Archive component, this functionality isn't going to work anyway...

waddella commented 1 year ago

@gmbecker most cran mirrors sync the Archive folders. Neither findPkgVersionInCRAN nor buildTarURLs are exported functions. Distribution of the cran mirror via arguments would require quite some changes.