Re: [Rd] str() not displaying names

2017-11-25 Thread Martin Maechler
> Martin Maechler > on Thu, 16 Nov 2017 22:00:16 +0100 writes: > [This is a "re-post" -- for some reason it never appeared > on R-devel] > Etienne Sanchez > on Tue, 14 Nov 2017 19:33:07 +0100 writes: >> In some cases, str() does not print the "names" attribute

Re: [Rd] str() not displaying names

2017-11-21 Thread Martin Maechler
[This is a "re-post" -- for some reason it never appeared on R-devel] > Etienne Sanchez > on Tue, 14 Nov 2017 19:33:07 +0100 writes: > In some cases, str() does not print the "names" attribute of the object: > > u <- structure(c(5, 6), names = c("a", "b"), color = "blue") > str(u)

[Rd] str() not displaying names

2017-11-14 Thread Etienne Sanchez
In some cases, str() does not print the "names" attribute of the object: u <- structure(c(5, 6), names = c("a", "b"), color = "blue") str(u) # atomic [1:2] 5 6 # - attr(*, "color")= chr "blue" Is it a bug or a design choice? Originally asked here: https://stackoverflow.com/q/47185756/6656269