[Rd] grep problem in R-devel 2.14 r57004

Mark.Bravington at csiro.au Mark.Bravington at csiro.au
Fri Sep 16 06:45:18 CEST 2011


Problem below with PCRE grep in R-devel; works fine in R-patched. (Unless there's been an absolutely massive change in rules for updated PCRE version 8.13; jeez I hope not)

> grep( '[.][.]', '', perl=TRUE)
Error in grep("[.][.]", "", perl = TRUE) :
  invalid regular expression '[.][.]'
In addition: Warning message:
In grep("[.][.]", "", perl = TRUE) : PCRE pattern compilation error
        'POSIX collating elements are not supported'
        at '[.][.]'

> sessionInfo()
R Under development (unstable) (2011-09-13 r57004)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252

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

NB I'm sending to R-devel rather than posting a bug report because (i) I have a dim recollection that's what we're supposed to do for bugs in R-devel, and (ii) Bugzilla doesn't include an R-devel version and (iii) couldn't find any guidance on these matters.

Mark

-- 
Mark Bravington
CSIRO Mathematical & Information Sciences
Marine Laboratory
Castray Esplanade
Hobart 7001
TAS

ph (+61) 3 6232 5118
fax (+61) 3 6232 5012
mob (+61) 438 315 623



More information about the R-devel mailing list