From bbc40394c01638717c5e740016ac985391b7202e Mon Sep 17 00:00:00 2001 From: ianmseddy Date: Wed, 8 May 2024 15:39:21 +0000 Subject: [PATCH] need remotes to use it --- R/DEoptim_fns.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/DEoptim_fns.R b/R/DEoptim_fns.R index 4160783..e4c513a 100644 --- a/R/DEoptim_fns.R +++ b/R/DEoptim_fns.R @@ -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") @@ -207,7 +210,7 @@ runDEoptim <- function(landscape, ), upgrade = FALSE ) - } + } ) parallel::stopCluster(cl) }