Skip to content

Commit

Permalink
Remove pipe from the checks
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 9, 2024
1 parent b151e69 commit bdb45a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/DEqual.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ DEqual <- function(DE) {
# stopifnot(!is.null(rownames(DE)))

# Check if 't' is in the column names of DE
DE %>%
if (!("t" %in% colnames(.))) {
if (!("t" %in% colnames(DE))) {
stop("Error: 't' is not a column in DE.")
}

# Check if DE has non-null row names
DE %>%
if (is.null(rownames(.))) {
if (is.null(rownames(DE))) {
stop("Error: Row names of DE are null.")
}

Expand Down

0 comments on commit bdb45a0

Please sign in to comment.