Skip to content

Commit

Permalink
Add a comment explaining the check for a default R repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwhite committed May 7, 2024
1 parent 32b9dc5 commit 505c0c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions offlinedatasci/miniCran.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if (!require("miniCRAN")) {

if (install_minicran) {
if (is.null(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")
Expand Down

0 comments on commit 505c0c6

Please sign in to comment.