Cannot install ggplot2: “Error in library.dynam(lib, package, package.lib) : shared object ‘stringi.so’ not found”

前端 未结 3 2189
既然无缘
既然无缘 2021-01-04 09:54

Last week I upgraded from Ubuntu 14.04 to 14.10. The first time I\'ve tried to use ggplot in RStudio since the update, I\'m getting dependancy errors with my ggplot package

3条回答
  •  日久生厌
    2021-01-04 10:08

    Got the same error while installing install.packages("knitr")

    Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/usr/local/lib/R/site-library/stringi/libs/stringi.so'

    I solved it by doing the below:

    In Ubuntu 16.04 and above

    sudo apt install r-cran-stringi

    In earlier versions (which had apt-get)

    sudo apt-get install r-cran-stringi

提交回复
热议问题