1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 20:02:04 +02:00

(v1.1.0.9007) lose dependencies

This commit is contained in:
2020-05-16 21:40:50 +02:00
parent 29609a0e2c
commit f68d71a5e0
44 changed files with 178 additions and 140 deletions

View File

@ -66,7 +66,7 @@
#' @source
#' Please see *Details* for the list of publications used for this function.
#' @examples
#' \donttest{
#' \dontrun{
#' library(dplyr)
#'
#' example_isolates %>%
@ -94,7 +94,8 @@ mdro <- function(x,
"\n\nThis may overwrite your existing data if you use e.g.:",
"\ndata <- mdro(data, verbose = TRUE)\n\nDo you want to continue?")
if ("rstudioapi" %in% rownames(utils::installed.packages())) {
q_continue <- rstudioapi::showQuestion("Using verbose = TRUE with mdro()", txt)
showQuestion <- get("showQuestion", envir = asNamespace("rstudioapi"))
q_continue <- showQuestion("Using verbose = TRUE with mdro()", txt)
} else {
q_continue <- utils::menu(choices = c("OK", "Cancel"), graphics = FALSE, title = txt)
}