The use of RcppParallel::tbbLibraryPath("tbb") on Windows returns nothing when called from the CRAN pre-built binary, and tbbRoot() returns a filepath on a D:/ drive:
utils::packageVersion("RcppParallel")
#> [1] '6.1.1'
RcppParallel::tbbLibraryPath("tbb")
RcppParallel:::tbbRoot()
#> [1] "D:/rtools45/x86_64-w64-mingw32.static.posix/lib"
All works as expected when RcppParallel is built from source:
install.packages("RcppParallel", type = "source")
#> Installing package into 'C:/Users/andrew/AppData/Local/R/win-library/4.6'
#> (as 'lib' is unspecified)
RcppParallel::tbbLibraryPath("tbb")
#> [1] "C:/rtools45/x86_64-w64-mingw32.static.posix/lib/libtbb12.a"
RcppParallel:::tbbRoot()
#> [1] "C:/rtools45/x86_64-w64-mingw32.static.posix/lib"
This appears to be due to RcppParallel looking in the dir specified by the internal TBB_LIB variable set by the configure run at package build time, rather than the location at runtime
The use of
RcppParallel::tbbLibraryPath("tbb")on Windows returns nothing when called from the CRAN pre-built binary, andtbbRoot()returns a filepath on aD:/drive:All works as expected when
RcppParallelis built from source:This appears to be due to
RcppParallellooking in the dir specified by the internalTBB_LIBvariable set by the configure run at package build time, rather than the location at runtime