Bug 17168 - Wishlist: same error message as table() for table(list())
Summary: Wishlist: same error message as table() for table(list())
Alias: None
Product: R
Classification: Unclassified
Component: Wishlist (show other bugs)
Version: R 3.3.*
Hardware: All All
: P5 enhancement
Assignee: R-core
Depends on:
Reported: 2016-10-22 15:34 UTC by Suharto Anggono
Modified: 2016-10-22 15:34 UTC (History)
0 users

See Also:

Against R devel r71566 (771 bytes, patch)
2016-10-22 15:34 UTC, Suharto Anggono
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Suharto Anggono 2016-10-22 15:34:24 UTC
Created attachment 2172 [details]
Against R devel r71566

R> table(list())
Error in table(list()) : attempt to set an attribute on NULL
R> table()
Error in table() : nothing to tabulate
R> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows XP (build 2600) Service Pack 2

[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

I think that it is good if table(list()) also use the error message for table(). The situation is similar and the error message is more informative.