Home > Enterprise >  error in library.dynam(lib, package, package.lib) shared ovject <library_name>.so not found
error in library.dynam(lib, package, package.lib) shared ovject <library_name>.so not found

Time:08-15

Using VirtualBox with Ubuntu 20LTS, and attempting to install and load R packages, getting the error:

error in library.dynam(lib, package, package.lib)
shared object <library_name>.so not found

Where <library_name> can be any of multiply libraries:

  • rlang
  • digest
  • fs
  • fansi

So the error looks like this:

error in library.dynam(lib, package, package.lib)
shared object digest.so not found

So far, uninstalled and reinstalled the packages with install.packages() and with sudo apt-get install r-cran-.

Currently cannot use devtools to install because it too fails to load with require(devtools) saying shared object fs.so (was) not found.

Please help

CodePudding user response:

Please step back a second and start from the top with a clean installation of R. The do

sudo apt-get install r-cran-digest

and library(digest) will work. I do not recall if fs and fansi are available for 20.04 so you will have to come to terms with source installation but even that should be easy of you have r-base-dev installed.

Now, we generally strongly recommend you start from the enter image description here

  • Related