R/functions-NCBSet.R

Defines functions .validateNCBSet

#' Validate `NCBSet`
#'
#' @param object `NCBSet`
#' @return `TRUE` (if valid) else character with msg what was incorrect
#' @noRd
.validateNCBSet <- function(object) {
    msg <- character()

    if (!all(object@assay@x %in% as.double(0:3))) {
        msg <- c(msg, "'assay' contains invalid values.")
    }

    if (length(msg)) {
        msg
    } else {
        TRUE
    }
}

Try the topdownr package in your browser

Any scripts or data that you put into this service are public.

topdownr documentation built on Nov. 8, 2020, 8:10 p.m.