[Rd] Potential bugs in table dnn

2021-10-10 Thread SOEIRO Thomas
Dear list, table does not set dnn for dataframes of length 1: table(warpbreaks[2:3]) # has dnn # tension # wool L M H #A 9 9 9 #B 9 9 9 table(warpbreaks[2]) # has no dnn # # A B # 27 27 This is because of if (length(dnn) != length(args)) (line 53 in https://github.com/wch/r-so

[Rd] Crash/bug when calling match on latin1 strings

2021-10-10 Thread Travers Ching
Here's a brief example: # A bunch of words in UTF8; replace *'s words <- readLines("h://pastebin.c**/raw/MFCQfhpY", encoding = "UTF-8") words2 <- iconv(words, "utf-8", "latin1") gctorture(TRUE) y <- match(words2, words2) I searched bugzilla but didn't see anything. Apologies if this is alrea

Re: [Rd] Crash/bug when calling match on latin1 strings

2021-10-10 Thread Rui Barradas
Hello, R 4.1.1 on Ubuntu 20.04. I can reproduce this error but not ~90% of the time, only the 1st time I run the script. If I run other (terminal) commands before rerunning the R script it sometimes segfaults again but once again very far from 90% of the time. rui@rui:~/tmp$ R -q -f rhelp.R