Skip to content

Commit

Permalink
Properly check for active link in default R repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwhite committed May 10, 2024
1 parent 8f36836 commit a33cc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion offlinedatasci/miniCran.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!require("miniCRAN")) {
}

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

0 comments on commit a33cc0a

Please sign in to comment.