Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
igordot committed Feb 14, 2025
1 parent 1a08b09 commit 2704a47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion R/msigdbr-collections.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
#' @export
#'
#' @examples
#' \donttest{
#' msigdbr_collections()
#' }
msigdbr_collections <- function(db_species = "Hs") {
# rlang::check_installed("msigdbdf")
# Check that msigdbdf is installed
msigdbr_check_data()

# Get the full table of gene sets and their member genes
Expand Down
4 changes: 0 additions & 4 deletions R/msigdbr.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
#' }
msigdbr <- function(species = "Homo sapiens", db_species = "HS", collection = NULL, subcollection = NULL, category = deprecated(), subcategory = deprecated()) {
# Check that msigdbdf is installed
# a dependency listed in DESCRIPTION Suggests is not guaranteed to be installed
# if (!requireNamespace("msigdbdf", quietly = TRUE)) {
# stop("package 'msigdbdf' must be installed to use this function", call. = FALSE)
# }
msigdbr_check_data()

# Check parameters
Expand Down
2 changes: 2 additions & 0 deletions man/msigdbr_collections.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2704a47

Please sign in to comment.