Skip to content

Commit

Permalink
SH: cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
hojsgaard committed Oct 14, 2024
1 parent c566430 commit 37a194a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
15 changes: 0 additions & 15 deletions R/grbase_check_functions.R

This file was deleted.

17 changes: 17 additions & 0 deletions R/grbase_utilities.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@

.check.is.matrix <- function(x){
if (!inherits(x, c("matrix", "dgCMatrix")))
stop("Input must be a matrix or a dgCMatrix\n")
}


.check.is.igraph <- function(x){
if (!inherits(x, "igraph"))
stop("'x' not an igraph object...")
}

.is_list_of_atomic <- function(z){
is.list(z) && all(sapply(z, is.atomic))
}


## ###################################################################
##
#' @title gRbase utilities
Expand Down

0 comments on commit 37a194a

Please sign in to comment.