Jupyter notebook: error installing packages R

I am using Ubuntu 16.04.

I have an R running on my Jupyter laptop and all packages come with "R essentials" features.

However, when I try to install additional packages, such as mice or bigmemory, the installation always fails. When he tries to do

** testing if the installed package can be downloaded

this error message:

Error in dyn.load (file, DLLpath = DLLpath, ...): unable to load shared object '/home/usr/anaconda3/lib/R/library/bigmemory/libs/bigmemory.so': / home / usr / anaconda 3 / lib / R / library / Rcpp / libs /../../../../ libstdc ++. So.6: version of 'GLIBCXX_3.4.20' not found (requires / home / usr / anaconda3 / lib / R /library/bigmemory/libs/bigmemory.so)

I tried sudo apt-get install libstdc++6 and it says that my libstdc ++ 6 is installed and is already the newest version. I do not know why the R-installer cannot find it.

+4
source share
1 answer

I get it!

I was upset and completely removed anaconda3 rm -rf ~\anaconda3. After reinstalling, I looked at the installation instructions for IRkernel . I have seen that:

If this fails, search for something like:

** , dyn.load(, DLLpath = DLLpath,...):    '/Users/[you]/anaconda/lib/R/library/rzmq/libs/rzmq.so':   dlopen (/Users/[you]/anaconda/lib/R/library/rzmq/libs/rzmq.so, 6): : libzmq.5.dylib   :/Users/[you]/anaconda/lib/R/library/rzmq/libs/rzmq.so   :

, R rzmq libzmq , . ,

, , install.packages('mice','/home/[usr]/anaconda3/lib/R/library/',type = 'source')

! "bigmemory". , Jupyter.

+2

All Articles