From abd8da630c789e829ee6d7ddbd20b3c40f41ec9d Mon Sep 17 00:00:00 2001 From: Sam Rogers <7007561+rogerssam@users.noreply.github.com> Date: Fri, 31 May 2024 16:07:37 +0930 Subject: [PATCH] Unloading Namespace seems to help --- NEWS.md | 2 -- R/install_asreml.R | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 2b802af..09527cd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,8 +11,6 @@ - Changed `install_asreml()` to check if there is a later version before downloading. - Enabled non-standard evaluation input of column names in `autoplot.design()`. -## Bug fixes - # biometryassist 1.1.3 diff --git a/R/install_asreml.R b/R/install_asreml.R index 43282a1..ae9ed4a 100644 --- a/R/install_asreml.R +++ b/R/install_asreml.R @@ -69,6 +69,7 @@ install_asreml <- function(library = .libPaths()[1], quiet = FALSE, force = FALS # If forcing installation, remove existing version to avoid errors on installation if(force && rlang::is_installed("asreml") && os_ver$os != "linux") { + unloadNamespace("asreml") if("asreml" %in% .packages()) { detach("package:asreml", unload = TRUE, force = TRUE) }