Learn R Programming

base (version 3.4.1)

pcre_config: Report Configuration Options for PCRE

Description

Report some of the configuration options of the version of PCRE in use in this R session.

Usage

pcre_config()

Arguments

Value

A named logical vector, currently with elements

UTF-8

Support for UTF-8 inputs. Required.

Unicode properties

Support for \p{xx} and \P{xx} in regular expressions. Desirable and used by some CRAN packages.

JIT

Support for just-in-time compilation. Desirable for speed (but only available as compile-time option on certain architectures as from PCRE 8.20).

stack

Does match recursion use a stack (TRUE, the PCRE default) or a heap? See the discussion at http://www.pcre.org/original/doc/html/pcrestack.html. (Added in R 3.4.0.)

Details

Detection of JIT requires R to have been compiled against the headers of PCRE 8.20 or later: it then checks at runtime the capabilities of the running PCRE library (which could conceivably be earlier).

See Also

extSoftVersion for the PCRE version.

Examples

Run this code
pcre_config()

Run the code above in your browser using DataLab