Search code examples
rtidyversercpprlang

Error: package or namespace load failed for ‘tidyverse’ in library.dynam(lib, package, package.lib): shared object ‘rlang.so’ not found


When trying to library(tidyverse) receiving variations on

Error: package or namespace load failed for ‘tidyverse’ in 
library.dynam(lib, package, package.lib): shared object ‘rlang.so’ not found

A similar problem is mentioned here


Solution

  • For me, I kept reinstalling the package in the error message (e.g. rlang in error message in the question, but also jsonlite etc etc)

    What worked

    I deleted all existing libraries locally and simply reinstalled tidyverse and the others I needed, and the problem resolved entirely.