flags: Compilation flags for RcppParallel

Description Usage Details Value

Description

Output the compiler or linker flags required to build against RcppParallel.

Usage

1
2
3
4
5

Details

These functions are typically called from Makevars as follows:

1
PKG_LIBS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::LdFlags()")

On Windows, the flags ensure that the package links with the built-in TBB library. On Linux and macOS, the output is empty, because TBB is loaded dynamically on load by RcppParallel.

R packages using RcppParallel should also add the following to their NAMESPACE file:

1

This is necessary to ensure that RcppParallel (and so, TBB) is loaded and available.

Value

Returns NULL, invisibly. These functions are called for their side effects (writing the associated flags to stdout).


RcppParallel documentation built on May 4, 2021, 9:06 a.m.