is_empty_xml: Check whether an object is empty for xml builds

View source: R/util.R

is_empty_xmlR Documentation

Check whether an object is empty for xml builds

Description

Check whether an object is empty, e.g. has no sub-elements, is NA

Usage

is_empty_xml(x)

Arguments

x

An object.

Examples

is_empty_xml(NA) # TRUE
is_empty_xml(list()) # TRUE
is_empty_xml(list(list())) # TRUE

is_empty_xml(1) # FALSE
is_empty_xml("") # FALSE
is_empty_xml(list(1)) # FALSE
is_empty_xml(list(list(1))) # FALSE


paws.common documentation built on Oct. 4, 2024, 1:08 a.m.