Issues on Mac OS X
Installing TBB and RcppParallel
Developed by Gabriel Hoffman
Run on 2025-07-01 10:08:57
Source:vignettes/mac_osx.Rmd
mac_osx.Rmd
GenomicDataStream
runs analyses across multiple cores in
parallel using Threading Building Blocks in oneTBB. This is
available in R using RcppParallel.
This package usually installs without an issue, but if it fails you can
use the package after modifying the paths:
Install TBB using brew
Install RcppParallel with TBB path
DIR = system("echo $(brew --prefix tbb)", intern=TRUE)
TBB_INC = paste(DIR, "include/", sep='/')
TBB_LIB = paste(DIR, "lib/", sep='/')
.Internal(Sys.setenv("TBB", DIR))
.Internal(Sys.setenv("TBB_INC", TBB_INC))
.Internal(Sys.setenv("TBB_LIB", TBB_LIB))
install.packages("RcppParallel")
Session info
## R version 4.4.2 (2024-10-31)
## Platform: aarch64-apple-darwin23.6.0
## Running under: macOS Sonoma 14.7.1
##
## Matrix products: default
## BLAS: /Users/gabrielhoffman/prog/R-4.4.2/lib/libRblas.dylib
## LAPACK: /opt/homebrew/Cellar/r/4.5.1/lib/R/lib/libRlapack.dylib; LAPACK version 3.12.1
##
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
##
## time zone: America/New_York
## tzcode source: internal
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## loaded via a namespace (and not attached):
## [1] vctrs_0.6.5 cli_3.6.5 knitr_1.50 rlang_1.1.6 xfun_0.52
## [6] purrr_1.0.4 textshaping_1.0.0 jsonlite_2.0.0 htmltools_0.5.8.1 ragg_1.3.3
## [11] sass_0.4.9 rmarkdown_2.29 evaluate_1.0.3 jquerylib_0.1.4 fastmap_1.2.0
## [16] yaml_2.3.10 lifecycle_1.0.4 memoise_2.0.1 compiler_4.4.2 fs_1.6.6
## [21] htmlwidgets_1.6.4 systemfonts_1.2.1 digest_0.6.37 R6_2.6.1 magrittr_2.0.3
## [26] bslib_0.9.0 tools_4.4.2 pkgdown_2.0.9 cachem_1.1.0 desc_1.4.3
<>