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:
@ -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)
|
||||
|
Reference in New Issue
Block a user