[R-pkg-devel] Accessing R's linked PCRE library from inside a package

Oliver Keyes ironholds at gmail.com
Thu Aug 11 00:15:21 CEST 2016


Hey all,

I'm trying to incorporate PCRE-compliant regular expressions into C
code in an R package.

>From digging around in R's source code, it appears that R (pretty
much?) guarantees the presence of either a system-level PCRE library,
or an R-internal one.[0] Is this exposed (or grabbable) via the R C
API in any way?

Thanks!

Best,
Oliver

https://github.com/wch/r-source/blob/e5b21d0397c607883ff25cca379687b86933d730/src/main/grep.c#L75-L79



More information about the R-package-devel mailing list