[Rd] Problem with a regular expression.
ruipbarradas at sapo.pt
Thu Aug 17 09:26:19 CEST 2017
This seems to be serious.
RGui.exe, fresh session. I've clicked File > New Script and wrote
Oldterm <- c("A", "B", "A", "*", "B")
strsplit(Oldterm, "\\\\)" )
Ran each instruction at a time with Ctrl+r and with the strsplit call
the system froze.
Ctrl+Alt+Del didn't work, I had to go for the power switch button.
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
 LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C
attached base packages:
 stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
Em 16-08-2017 23:31, Chris Triggs escreveu:
> I have come upon a problem with a regular expression which causes base-R to freeze. I have reproduced the phenomenon on several machines running R under Windows 10, and also under OSX on different Apple MACs.
> The minimal example is:-
> Oldterm is a vector of characters, e.g. "A", "B", "A", "*", "B"
> The regular expression is "\\\\)"
> The call which freezes R is
> strsplit(Oldterm, "\\\\)" )
> Thomas - after he had reproduced the problem - suggested that I submit it to r-devel.
> Best wishes....
> Chris Triggs
> [[alternative HTML version deleted]]
> R-devel at r-project.org mailing list
More information about the R-devel