Skip to content

Commit f1c7fd7

Browse files
committed
Document behavior of RcppParallelFlags
1 parent 394a729 commit f1c7fd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

man/RcppParallelFlags.Rd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ These functions are typically called from \code{Makevars} as follows:
1919

2020
\code{PKG_LIBS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::LdFlags()")}
2121

22+
On Windows, the flags ensure that the package links with the built-in TBB library.
23+
On Linux and macOS, the output is empty, because TBB is loaded dynamically.
24+
To ensure portability, load \pkg{RcppParallel} before loading your package, e.g. by including \code{importFrom(RcppParallel, RcppParallelLibs)} in your \code{NAMESPACE} file.
25+
See \url{https://github.com/RcppCore/RcppParallel/issues/129} for details.
2226
}
2327

2428
\value{

0 commit comments

Comments
 (0)