With base install.packages(), it's possible to specify additional repos to search in addition to the ones listed in options("repos") with the repos argument:
install.packages('correlation', repos = 'https://easystats.r-universe.dev')
This is convenient, and I've found also easier to explain to my students and users of my packages. It would be nice to be able to do similarly with pkg_install() to add an extra repo to the list at function runtime:
pak::pkg_install('correlation', repos = 'https://easystats.r-universe.dev')
With base
install.packages(), it's possible to specify additional repos to search in addition to the ones listed inoptions("repos")with thereposargument:This is convenient, and I've found also easier to explain to my students and users of my packages. It would be nice to be able to do similarly with
pkg_install()to add an extra repo to the list at function runtime: