add default repository to install_required_packages() (#509)
authorZhian N. Kamvar <zkamvar@gmail.com>
Mon, 19 Oct 2020 06:45:35 +0000 (23:45 -0700)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 06:45:35 +0000 (02:45 -0400)
bin/dependencies.R

index 676b05055cdbcd29f654e097a55d3020a406c927..ad5afe78d1d4e88edcc860544fa1fa59db6043f1 100644 (file)
@@ -1,4 +1,4 @@
-install_required_packages <- function(lib = NULL, repos = getOption("repos")) {
+install_required_packages <- function(lib = NULL, repos = getOption("repos", default = c(CRAN = "https://cran.rstudio.com/"))) {
 
   if (is.null(lib)) {
     lib <- .libPaths()
 
   if (is.null(lib)) {
     lib <- .libPaths()