Skip to content

Commit 56c98a3

Browse files
committed
fix bug
1 parent d891918 commit 56c98a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,8 +3727,8 @@ setGeneric("test_gene_overrepresentation", function(.data,
37273727
stop("tidybulk says: the .entrez parameter appears to no be set")
37283728

37293729
# Check column type
3730-
if (.data %>% rowData() %>% as_tibble(rownames = f_(.data)$name) %>% mutate(my_do_test = !!.do_test) %>% pull(my_do_test) |> is("logical") %>% not())
3731-
stop("tidybulk says: .do_test column must be logical (i.e., TRUE or FALSE)")
3730+
if (.data %>% mutate(my_do_test = !!.do_test) %>% pull(my_do_test) |> is("logical") |> not() )
3731+
stop("tidybulk says: .do_test column must be logical (i.e., TRUE or FALSE)")
37323732

37333733
# Check packages msigdbr
37343734
# Check if package is installed, otherwise install

0 commit comments

Comments
 (0)