checkClasses: Check Classes

Description Usage Arguments Examples

View source: R/checkClasses.R

Description

Check Classes

Usage

1
checkClasses(object, expected, subset = FALSE)

Arguments

object

Object.

expected

list. Named list of expected classes per slot.

subset

boolean. Only check a subset of slots in the object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(rse, package = "basejump.data")
object <- rse
metadata <- S4Vectors::metadata(object)
checkClasses(
    object = metadata,
    expected = list(
        version = c("package_version", "numeric_version"),
        date = "Date",
        interestingGroups = "character"
    )
)

steinbaugh/basejump.developer documentation built on Nov. 5, 2018, 10:35 p.m.