Check for a section existence in a nested list

.checkSection(object, sectionNames)

Arguments

object

list to inspect

sectionNames

vector or characters with sectio names to check for

Value

logical indicating whether the sections where found in the list

Examples

l = list(a=list(b="test"))
.checkSection(l,c("a","b"))
#> [1] TRUE
.checkSection(l,c("c","b"))
#> [1] FALSE