How to solve rotl/rcpp "package or namespace load failed for 'rotl'" error?
10:45 08 Sep 2026
install.packages("rotl")

The downloaded binary packages are in
    /var/folders/88/_6w75n9j3r37kp0783xz43z80000gn/T//RtmpdtGKWZ/downloaded_packages

library(rotl)

Error: package or namespace load failed for ‘rotl’:

object ‘loadRcppModules’ is not exported by 'namespace:Rcpp'

This is the error I keep getting when I install rotl or rcpp. my version is 4.4.1. i feel like I've tried everything from removing the packages and installing the pre-compiled binary versions to removing rcpp and rotl from my system library so they only exist within session library.

Anyone have suggestions? I believe my R is somehow corrupted but I'd like to see if anyone has run into this error while running this version and how they fixed it. Thank you. Please just try the code here:

install.packages("rotl")

library(rotl)
r rcpp ape