vignettes/pkgdown/parallelisation.Rmd
parallelisation.Rmd
quanteda takes advantage of parallel computing through the TBB (Threading Building Blocks) library to speed up computations. This guide provides step-by-step instructions on how to set up your system for using Quanteda with parallel capabilities on Windows, macOS, and Linux.
Open an R session and check that RTools is correctly configured:
find.package("pkgbuild")
To open the terminal on macOS, press Cmd+Space
to open
Spotlight, type “Terminal”, and press enter. Alternatively, you can find
the Terminal in /Applications/Utilities/
.
Type the following command in the terminal:
If Homebrew is not installed, run:
Follow the on-screen instructions.
After installing Homebrew, run:
Required for compiling Fortran code, install using Homebrew:
After setting up the required tools and libraries, install quanteda from CRAN:
install.packages("quanteda")
Parallelisation functions properly if you receive a message detailing the number of threads used for parallel computing after loading quanteda.