search for: do_grep

Displaying 8 results from an estimated 8 matches for "do_grep".

2009 Feb 12
0
Patch for src/main/character.c, systematizing recent fix to do_grep
The attached patch provides a modification to the recent fix/improvement to do_grep already included in the most recent development version. The original fix added new functionality to the grep function by adding a new parameter, 'invert'. In the source code for the underlying do_grep, the value of the parameter is used to invert the logical match-no match flag vector in...
2011 Sep 29
3
grep and PCRE fun
Hello, I think I've found a bug in the C function do_grep located in src/main/grep.c. It seems to affect both the latest revisions of R-2-13-branch and trunk when compiling R without optimizations and with it's own version of pcre located in src/extra, at least on ubuntu 10.04. According to the pcre_exec API (I presume the later versions), the ovecs...
2006 Jun 05
2
grep() and factors
...ich should be character strings or character vectors are coerced to character if possible. The wording of both would seem to reasonably lead to the conclusion that a factor could be coerced to a character vector by the use of as.character(FACTOR). In tracing through the C code in character.c for do_grep(), which in turn calls coerceVector() in coerce.c, unless I am mis-reading the code (always possible), I don't see an indication that a factor would be coerced to a character vector. Since a factor -> character coercion would seem at face value, the most logical coercion to take place when...
2009 Jan 21
0
patch for src/main/character.c
Attached is a suggested patch for src/main/character.c. It does not fix a bug, but rather provides an improvement on the recent extension of do_grep. In essence, instead of four occurences of 'invert ^ LOGICAL(ind)[i]' that accommodate for the option 'invert' added to grep, there is one occurence of 'LOGICAL(ind)[i] ^= invert' that modifies in-place the logical vector of matched/unmatched flags. Having the inversion do...
2017 Apr 20
1
Intel MKL compiling issue
...oc' grep.o: In function `do_regexpr': /genetics/data/software/R-devel/src/main/grep.c:2832: undefined reference to `pcre_free_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]...
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
2000 Jan 29
1
HDF5 as a module
...====================================== RCS file: /home/rcvs/src/R/src/main/names.h,v retrieving revision 1.51 diff -c -r1.51 names.h *** src/main/names.h 2000/01/21 17:54:06 1.51 --- src/main/names.h 2000/01/29 00:23:19 *************** *** 181,188 **** SEXP do_gray(SEXP, SEXP, SEXP, SEXP); SEXP do_grep(SEXP, SEXP, SEXP, SEXP); SEXP do_gsub(SEXP, SEXP, SEXP, SEXP); - SEXP do_hdf5save (SEXP, SEXP, SEXP, SEXP); - SEXP do_hdf5load (SEXP, SEXP, SEXP, SEXP); SEXP do_hsv(SEXP, SEXP, SEXP, SEXP); SEXP do_identify(SEXP, SEXP, SEXP, SEXP); SEXP do_if(SEXP, SEXP, SEXP, SEXP); --- 181,186 ---- Index...
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-