fail to install summarytools pryr on Manjaro

Updated Manjaro today and it updated R to version 4.0.0-2
retained r-studio-desktop-bin 1.2.5033-3

I am just setting up R and rstudio for the first time, and a few packages, first tidyverse a few days ago, and today summarytools.

This seemed to install everything except for the last component:
> install.packages("summarytools")

trying URL 'https://cran.rstudio.com/src/contrib/summarytools_0.9.6.tar.gz'
Content type 'application/x-gzip' length 709321 bytes (692 KB)

downloaded 692 KB

  • installing source package ‘pryr’ ...
    ** package ‘pryr’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c RcppExports.cpp -o RcppExports.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c bytes.cpp -o bytes.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c inspect.cpp -o inspect.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c object_size.cpp -o object_size.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c promise.cpp -o promise.o
    gcc -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c size-info.c -o size-info.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c slice.cpp -o slice.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c typename.cpp -o typename.o
    g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o pryr.so RcppExports.o bytes.o inspect.o object_size.o promise.o size-info.o slice.o typename.o -L/usr/lib64/R/lib -lR
    installing to /home/joe/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-pryr/00new/pryr/libs
    ** R
    ** byte-compile and prepare package for lazy loading
    Error in dyn.load(file, DLLpath = DLLpath, ...) :
    unable to load shared object '/home/joe/R/x86_64-pc-linux-gnu-library/4.0/stringi/libs/stringi.so':
    libicui18n.so.65: cannot open shared object file: No such file or directory
    Calls: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
    Execution halted
    ERROR: lazy loading failed for package ‘pryr’
  • removing ‘/home/joe/R/x86_64-pc-linux-gnu-library/4.0/pryr’
    Warning in install.packages :
    installation of package ‘pryr’ had non-zero exit status
    ERROR: dependency ‘pryr’ is not available for package ‘summarytools’
  • removing ‘/home/joe/R/x86_64-pc-linux-gnu-library/4.0/summarytools’
    Warning in install.packages :
    installation of package ‘summarytools’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpmQpPCj/downloaded_packages’

So I tried to install pryr directly and that failed as follows:

install.packages("pryr")
Installing package into ‘/home/joe/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/pryr_0.1.4.tar.gz'
Content type 'application/x-gzip' length 43041 bytes (42 KB)
==================================================
downloaded 42 KB

  • installing source package ‘pryr’ ...
    ** package ‘pryr’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c RcppExports.cpp -o RcppExports.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c bytes.cpp -o bytes.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c inspect.cpp -o inspect.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c object_size.cpp -o object_size.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c promise.cpp -o promise.o
    gcc -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c size-info.c -o size-info.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c slice.cpp -o slice.o
    g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -I'/home/joe/R/x86_64-pc-linux-gnu-library/4.0/Rcpp/include' -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c typename.cpp -o typename.o
    g++ -std=gnu++11 -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o pryr.so RcppExports.o bytes.o inspect.o object_size.o promise.o size-info.o slice.o typename.o -L/usr/lib64/R/lib -lR
    installing to /home/joe/R/x86_64-pc-linux-gnu-library/4.0/00LOCK-pryr/00new/pryr/libs
    ** R
    ** byte-compile and prepare package for lazy loading
    Error in dyn.load(file, DLLpath = DLLpath, ...) :
    unable to load shared object '/home/joe/R/x86_64-pc-linux-gnu-library/4.0/stringi/libs/stringi.so':
    libicui18n.so.65: cannot open shared object file: No such file or directory
    Calls: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
    Execution halted
    ERROR: lazy loading failed for package ‘pryr’
  • removing ‘/home/joe/R/x86_64-pc-linux-gnu-library/4.0/pryr’
    Warning in install.packages :
    installation of package ‘pryr’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpmQpPCj/downloaded_packages’

Any suggestions as to how to add pryr ? Thanks.

Try reinstalling stringi package, restart your R session and then try to install pryr again.

Thank you. Problem solved.

Surprised that it was just an un-included dependency and simple fix. I am new to this and interprelting the error msgs takes a little help.

Appreciate the help very much. Hope this gets fixed in the packaging/installation.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.