dirThis helper calls preprocess_header() for each matching file in
dir and returns a named list with the path as the keys and the
preprocessed text as the values.
preprocess_headers(
dir = R.home("include"),
recursive = TRUE,
pattern = c("\\.h$", "\\.H$"),
cc = r_cc(),
ccflags = NULL,
...
)Named list of file => preprocessed text.
Directory where header files will be searched.
Logical; whether to search recursively.
File name pattern(s) used to identify header files.
Compiler string; passed to preprocess_header.
Compiler flags; passed to preprocess_header.
Arguments passed on to parse_r_include_headers
preprocessRun the C preprocessor (using R's configured CC) on
header files before parsing. Defaults to FALSE.
include_dirsAdditional directories to add to the include path for preprocessing. A character vector of directories.