Skip to content

Commit

Permalink
Fixed "the condition has length > 1" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangycbnu committed Feb 3, 2023
1 parent 0be3b07 commit c6538d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/MTXmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ MTXmodel <-
}

# covariate-DNA
if (input_dnadata != "none") {
if (is.character(input_dnadata)) {
if (is.character(input_dnadata)) {
if (input_dnadata != "none") {
dnadata <-
data.frame(data.table::fread(
input_dnadata, header = TRUE, sep = "\t"),
Expand All @@ -421,10 +421,10 @@ MTXmodel <-
row.names = 1)
}
} else {
dnadata <- input_dnadata
dnadata <- "none"
}
} else {
dnadata <- "none"
dnadata <- input_dnadata
}

# create an output folder and figures folder if it does not exist
Expand Down

0 comments on commit c6538d7

Please sign in to comment.