is.recursive returns TRUE if x has a recursive (list-like) structure and FALSE otherwise.
is.recursive
TRUE
x
FALSE
is.recursive(x)