Say you just upgraded from Ubuntu 19.10 to Ubuntu 20.04, as I just did. You may have a number of CRAN packages installed from source in/usr/local/lib/R/site-library. All fine.
Butapt anddpkg do not know about them. So it may remove librariesnot knowing about these implicit dependencies. Next time you try to load one of the affected packages, it will fail.
Example:
R>library(chshli)Attaching chshli on ubuntu:20.04R>checkSharedLibs(db="19.10")Looking at libxml2.so.2:libxml2Looking at libapt-pkg.so.5.90:libapt-pkg5.90Looking at libgit2.so.27:libgit2-27NULLR>This identifieslibgit2 (likely via packagegit2r),libapt-pkg (likely viaRcppApt andlibxml2 (likely viaxml2). All three can probably be fixed via a simple reinstallation from source.
Say you experiment with RSPM, for example viathis Rocker container which you can pull viadocker pull rocker/r-rspm:18.04. And you didinstall.packages("xml2"). Now you can do (after installing this package, of course)
Example:
R>library(chshli)Attaching chshli on ubuntu:18.04R>checkSharedLibs()Looking at libxml2.so.2:libxml2NULL>and installing (at the system-level,i.e. asroot)sudo apt install libxml2 will make your package work. Which is a very nice complement to the nice and fast installation via RSPM.
For now from GitHub viaremotes::install_github("eddelbuettel/chshli") or, if you havelittler, viainstallGithub eddelbuettel/chshli.
Dirk Eddelbuettel
GPL (>= 2)
Initially created: Wed May 27 20:40:13 CDT 2020
Last modified: Sat May 30 08:26:39 CDT 2020