Installing Rhobots
Select your operating system below to see the exact steps for your machine.
Step 1 of 2
What operating system are you using?
Rhobots runs on macOS and Windows. Your installation steps depend on your system.
Step 2 of 2
What type of Mac do you have?
The steps are nearly identical, but Apple Silicon Macs can use GPU acceleration for faster embedding.
Look for Chip: Apple M… (Apple Silicon) or Processor: Intel… (Intel).
macOS — Apple Silicon
Installation guide for M1, M2, M3 and M4 Macs
R needs a C++ compiler to install packages with native code. Xcode Command Line Tools provides this — it is a small separate package (~2 GB), not the full Xcode IDE.
Open Terminal (Cmd+Space → type "Terminal") and run:
xcode-select --install
Download the arm64 build of R from CRAN — this version is optimised for M-series chips.
Open R (or RStudio) and run both lines:
install.packages(c("remotes", "gutenbergr"))
remotes::install_github("JPvdP/RhoBots")Rhobots uses PyTorch through R's torch package to run embedding models. The C++ backend (~560 MB) is downloaded separately:
library(Rhobots) rhobots_install()
After restarting R, verify everything works. On Apple Silicon you can pass device = "mps" to use the GPU (2–3× faster for embedding):
library(Rhobots) rhobots_demo() # CPU — works on any Mac rhobots_demo(device = "mps") # Apple Silicon GPU — faster
macOS — Intel
Installation guide for Intel Mac
device = "cpu" is available. Embedding ~900 paragraphs takes roughly 3–5 minutes.Open Terminal and run:
xcode-select --install
Download the x86_64 build of R from CRAN.
install.packages(c("remotes", "gutenbergr"))
remotes::install_github("JPvdP/RhoBots")library(Rhobots) rhobots_install()
library(Rhobots) rhobots_demo()
Windows 10 / 11
Installation guide for Windows
The torch package requires the Microsoft Visual C++ runtime to load its native libraries. This is a small installer (~25 MB) from Microsoft.
Download and install the 64-bit version of R for Windows.
Rtools provides the C++ compiler R uses to build packages with native code. The version number must match your R version (e.g. Rtools45 for R 4.5, Rtools46 for R 4.6).
After installing, verify it is working by running this in R — it should return a path, not an empty string:
Sys.which("make") # should return a path, not """", restart R after installing Rtools and try again.install.packages(c("remotes", "gutenbergr"))
remotes::install_github("JPvdP/RhoBots")library(Rhobots) rhobots_install()
library(Rhobots) rhobots_demo()
torch::install_torch(type = "cpu")