diff --git a/DESCRIPTION b/DESCRIPTION
index 7b2ccead..226376e6 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,5 +1,5 @@
Package: AMR
-Version: 1.2.0.9008
+Version: 1.2.0.9009
Date: 2020-06-17
Title: Antimicrobial Resistance Analysis
Authors@R: c(
diff --git a/NEWS.md b/NEWS.md
index a146eda0..78aa761e 100755
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,4 +1,4 @@
-# AMR 1.2.0.9008
+# AMR 1.2.0.9009
## Last updated: 17-Jun-2020
### New
diff --git a/R/aa_helper_functions.R b/R/aa_helper_functions.R
index 64cf2817..bea6f5b3 100755
--- a/R/aa_helper_functions.R
+++ b/R/aa_helper_functions.R
@@ -182,14 +182,14 @@ search_type_in_df <- function(x, type) {
stopifnot_installed_package <- function(package) {
# no "utils::installed.packages()" since it requires non-staged install since R 3.6.0
# https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html
- sapply(package, function(x)
- tryCatch(get(".packageName", envir = asNamespace(x)),
+ sapply(package, function(pkg)
+ tryCatch(get(".packageName", envir = asNamespace(pkg)),
error = function(e) {
if (package == "rstudioapi") {
stop("This function only works in RStudio.", call. = FALSE)
- } else {
- stop("package '", x, "' required but not installed.",
- "\nTry to install it with: install.packages(\"", x, "\")",
+ } else if (pkg != "base") {
+ stop("package '", pkg, "' required but not installed.",
+ "\nTry to install it with: install.packages(\"", pkg, "\")",
call. = FALSE)
}
}))
diff --git a/docs/404.html b/docs/404.html
index ae57627a..d30ea81b 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -81,7 +81,7 @@
NEWS.md
-