Skip to content

Commit

Permalink
Does it fail?
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwhite committed May 10, 2024
1 parent d617162 commit e681966
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions offlinedatasci/miniCran.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ if (!require("miniCRAN")) {
}

if (install_minicran) {
if (grepl("http", getOption("repos"))){
#Lack of a default repo can cause the install to fail
install.packages("miniCRAN", repos = "https://cloud.r-project.org" )
} else {
install.packages("miniCRAN")
}
install.packages("miniCRAN")
}

library(miniCRAN)
Expand Down

0 comments on commit e681966

Please sign in to comment.