Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Dear Brodie,
on the R-devel mailing list, recently the issue was raised why
str() was printing "atomic" (instead of e.g. "int") and not
mentioning the names e.g., forkin the case
structure(1:4, .Names=letters[1:4], foo = "bar")
https://stat.ethz.ch/pipermail/r-devel/2017-November/075163.html
In previous/current versions of R, we've had
whereas in R-devel
which is much more internally coherent with the output (in all
versions of R) of
..... so far for motivation.
In any case, in your testthat.misc.R ~ line 15 :
now gives an error ... as does the subsequent test.
It is also a case where the new output is "clearly"(in the eye
of the beholder) nicer than before.
To make your check work both with "old R" (R < 3.5.0, i.e. all
versions before R-devel) and with R-devel,
you can use if(getRversion() ....) to distinguish, and indeed,
I've checked that the appended small patch makes your package
work fine with R-devel, too
Best regards,
Martin Maechler