1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 07:11:57 +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

@ -126,7 +126,8 @@ set_mo_source <- function(path) {
} else if (path %like% "[.]xlsx?$") {
# is Excel file (old or new)
stopifnot_installed_package("readxl")
df <- readxl::read_excel(path)
read_excel <- get("read_excel", envir = asNamespace("readxl"))
df <- read_excel(path)
} else if (path %like% "[.]tsv$") {
df <- utils::read.table(header = TRUE, sep = "\t", stringsAsFactors = FALSE)