MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #17817] utils::select.list(..., graphics = T) truncates result at 99 characters, causing utils::menu(..., graphics = T) to fail and return 0 #6992

Open github-actions[bot] opened 4 years ago

github-actions[bot] commented 4 years ago

Example:

choice1 <- paste0(sample(letters, 100, replace = T), collapse = "")
utils::menu(c(choice1, "choice2"), graphics = T) #select 1st element

0

choice1

[1] "dovjkxitwqcwiirhwgzbcdhgdpeqxajxgdjbraccyopbpnlcoidtapnxlxlhlsugcxquebqqnhfwnbdmyjvtbdncdwugcqhcfgin"

utils::select.list(c(choice1, "choice2"), graphics = T) #select 1st element

[1] "dovjkxitwqcwiirhwgzbcdhgdpeqxajxgdjbraccyopbpnlcoidtapnxlxlhlsugcxquebqqnhfwnbdmyjvtbdncdwugcqhcfgi"

Documentation doesn't point to a 99 character limit. Doesn't happen on Linux/Mac OS since they use tcltk.


METADATA

github-actions[bot] commented 4 years ago

What I expected: I picked 1st element, so 1 What happened: got 0


METADATA