| flags {RcppParallel} | R Documentation |
Output the compiler or linker flags required to build against RcppParallel.
CxxFlags() LdFlags() RcppParallelLibs()
These functions are typically called from Makevars as follows:
“' 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.
To ensure portability, load RcppParallel before loading
your package, e.g. by including importFrom(RcppParallel,
RcppParallelLibs) in your NAMESPACE file. See
https://github.com/RcppCore/RcppParallel/issues/129 for details.
Returns NULL, invisibly. These functions are called for
their side effects (writing the associated flags to stdout).