Movatterモバイル変換


[0]ホーム

URL:


Dirk Eddelbuettel

chshli: Check Shared Libraries

What Is This For?

Use Case 1: Distribution Upgrade

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.

Use Case 2: RSPM Installations

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.

Installation

For now from GitHub viaremotes::install_github("eddelbuettel/chshli") or, if you havelittler, viainstallGithub eddelbuettel/chshli.

Who

Dirk Eddelbuettel

License

GPL (>= 2)

Initially created: Wed May 27 20:40:13 CDT 2020
Last modified: Sat May 30 08:26:39 CDT 2020


[8]ページ先頭

©2009-2025 Movatter.jp