Skip to content

Commit

Permalink
need remotes to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmseddy committed May 8, 2024
1 parent 7b19a88 commit bbc4039
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/DEoptim_fns.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ runDEoptim <- function(landscape,
}

if (!"Require" %in% rownames(utils::installed.packages())) {
if (!require("remotes")) {
install.packages("remotes")
}
remotes::install_github("PredictiveEcology/Require@development")
} else if (packageVersion("Require") < "0.1.0.9000") {
remotes::install_github("PredictiveEcology/Require@development")
Expand All @@ -207,7 +210,7 @@ runDEoptim <- function(landscape,
),
upgrade = FALSE
)
}
}
)
parallel::stopCluster(cl)
}
Expand Down

0 comments on commit bbc4039

Please sign in to comment.