HenrikBengtsson / listenv

R package: listenv - Environments Behaving As Lists
https://listenv.futureverse.org
30 stars 2 forks source link

print(x) for names, empty listenv() is empty #39

Closed HenrikBengtsson closed 6 years ago

HenrikBengtsson commented 6 years ago
> x <- listenv()
> names(x) <- character(0L)
> print(x)
> capture.output(print(x))
character(0)

Instead, update to give something like:

> print(x)
A named 'listenv' vector with 0 elements.