search for: do_strsplit

Displaying 6 results from an estimated 6 matches for "do_strsplit".

2008 Mar 17
1
Inconsistency in gsub in R.2.6.2 (PR#10978)
...07-0 ... > x <- "ab?" > Encoding(x) [1] "latin1" > Encoding(gsub("?","", x)) [1] "unknown" > Encoding(gsub("?","", x, perl = TRUE)) [1] "latin1" The code in src/main/pcre.c (see also do_tolower and do_strsplit in src/main/character.c) suggests to patch as attached. > x <- "ab?" > Encoding(gsub("?","", x)) [1] "latin1" Happy Easter Christian -- Christian Buchta -> Institute for Tourism and Leisure Studies -> Vienna University of Economics and...
2019 Feb 19
1
patch for gregexpr(perl=TRUE)
...nally I would like to mention that Bill Dunlap noticed a similar problem (time complexity which is quadratic in subject size) for strsplit with perl=TRUE. My patch does NOT fix that, but I suspect that a similar fix could be accomplished (because I see that strlen is being called in a while loop in do_strsplit as well). Thanks Toby Dylan Hocking [[alternative HTML version deleted]]
2000 Mar 18
3
AIX fails on startup with R-1.0.0
Hi, this is not a bug report since this may not be a problem with R per se. The current release of R (1.1.0) will compile cleanly on an AIX box (I have 4.3.2) but it will fail upon startup with an Illegal Instruction. I've located the problem to be in do_strsplit when R calls regcomp. This function is defined in regex.c. However, the text from regex.o doesn't find its way into the executable, R.X11, since there's also a regcomp in /usr/lib/libc.a Apparently, this confuses the system enough to completely lose its mind. When regcomp in libc.a gets...
2002 May 08
0
embedded R regexec returning nonsense
...s makes me suspect that there is some hairy interaction between the R regex functions and something in python. With R 1.4.1, R starts up smoothly under rpy and RSPython and only certain functions elicit the error. For instance, doing "bitmap('file.bmp')" will cause a segfault in do_strsplit (character.c:260) because the regmatch structure contains the nonsense values: (gdb) print regmatch[0] $1 = {rm_so = 9257728, rm_eo = 9257729} With R 1.5.0, R fails to complete startup initialization under both rpy and RSPython, segfaulting in do_readDCF (dcf.c:109) with similar nonsense value...
2017 Apr 20
1
Intel MKL compiling issue
...study' grep.o: In function `do_gsub': /genetics/data/software/R-devel/src/main/grep.c:2116: undefined reference to `pcre_free_study' grep.o: In function `do_grep': /genetics/data/software/R-devel/src/main/grep.c:1109: undefined reference to `pcre_free_study' grep.o: In function `do_strsplit': /genetics/data/software/R-devel/src/main/grep.c:629: undefined reference to `pcre_free_study' collect2: ld returned 1 exit status make[3]: *** [R.bin] Error 1 make[3]: Leaving directory `/genetics/data/software/R-devel/src/main' make[2]: *** [R] Error 2 make[2]: Leaving directory `/ge...
2017 Apr 20
2
Intel MKL compiling issue
Dear R-developers, I would appreciate any insights over compiling R 3.4 with Intel MKL -- I have been successful until R 3.3.3 but now it stops complaining about pcre though it worked without Intel MKL as follows, ./configure LDFLAGS=-L/genetics/data/software/lib CFLAGS=-fPIC -I/genetics/data/software/include --enable-R-shlib I have used, export MKL_NUM_THREADS=15 export