You are not logged in.

#1 2017-11-29 10:24:36

ralph_hellgrind
Member
Registered: 2016-02-03
Posts: 46

Installing packages in R

Hello, I have installed R scripting language in my computer. The details are as follows-

R version 3.4.2 (2017-09-28) -- "Short Summer"
Platform: x86_64-pc-linux-gnu (64-bit)

Arch Linux: 4.13.12-1-ARCH #1 SMP PREEMPT

Whenever, I try to install a package in R using "install.packages("package_name")" from within the R, it gives me the following error-

Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/home/archlinux/R/x86_64-pc-linux-gnu-library/3.4/stringi/libs/stringi.so':
  libicui18n.so.59: cannot open shared object file: No such file or directory
ERROR: lazy loading failed for package ‘lubridate’
* removing ‘/home/archlinux/R/x86_64-pc-linux-gnu-library/3.4/lubridate’

I removed the package, cleared my cache and then did a fresh install. But the problem is still persisting.

Although, I have the following outputs for the commands-

ldconfig -p | grep libicuuc
    libicuuc.so.60 (libc6,x86-64) => /usr/lib/libicuuc.so.60
    libicuuc.so (libc6,x86-64) => /usr/lib/libicuuc.so

ldconfig -p | grep libicui
    libicui18n.so.60 (libc6,x86-64) => /usr/lib/libicui18n.so.60
    libicui18n.so (libc6,x86-64) => /usr/lib/libicui18n.so
    libicuio.so.60 (libc6,x86-64) => /usr/lib/libicuio.so.60
    libicuio.so (libc6,x86-64) => /usr/lib/libicuio.so


Any suggestions as to how to get rid of this?

Thanks!

Last edited by ralph_hellgrind (2017-11-29 10:33:41)

Offline

#2 2017-11-29 12:25:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Installing packages in R

update.packages()


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-11-29 14:12:36

woodape
Member
Registered: 2015-03-25
Posts: 159

Re: Installing packages in R

If Triliby's suggestion doesn't do it, you might want to try just reinstalling stringi: install.packages("stringi"). I had an issue one time where it just needed a rebuild.

Offline

#4 2017-11-29 14:27:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Installing packages in R

Ah, good point - it could need a rebuild even if there isn't a new version on CRAN.

However, I had a related issue a couple days ago due to the icu update, and a simple `update.packages()` was sufficient - of course I only run that when something breaks, so it might have been a while since I last rebuilt stringi.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB