R/utility_generics.R

Defines functions is.empty

#--------------------------------------#
#'@noRd
assert <- function (expr, error) {
	if (!expr) stop(error, call. = FALSE)
}

#--------------------------------------#
#'@noRd
'%ni%' <- function(x,y){!(x%in%y)}

#--------------------------------------#
#'@noRd
is.empty <- function(x){ifelse(length(x)==0,TRUE,FALSE)}
Fuschi/JAX documentation built on Dec. 17, 2021, 9:22 p.m.