It doesn't run anything, it only defines one R function install.libs which can download and install the corresponding binaries (view the script). For example, to install the openssl library, use:
The default arguments will use this repository and will automatically determine the suitable binary for your system (if available). We are currently supporting Intel Macs with macOS 10.13 (High Sierra) or higher and Apple Silicon (M1) Macs with macOS 11 (Big Sur) and higher.
NOTE: if you don't have write-permission in the installation location, you may need to make it writable or run sudo R.
Bundles are also supported, so if you want to install all libraries used by CRAN to build R releases, you can use:
The following repostiories are currently provided:
|darwin17/x86_64||/usr/local||macOS 10.13, Intel (x86_64)|
|darwin20/arm64||/opt/R/arm64||macOS 11, Apple M1 (arm64)|
|darwin20/x86_64||/opt/R/x86_64||macOS 11, Intel (x86_64)|
All binaries are built automatically using the recipes build system.
You can also use a special value "all" which will install (or list) all avaiable binaries (including tools - this is quite big!).
Note that tools (such as subversion or emacs) can be downloaded individualy and don't require their build dependencies in order to be used, so you can use, for example:
The dependecies are only required for libraries to link against them.
The install.libs function has following arguments:
$ grep lib/libcrypto /opt/R/arm64/pkg/* /opt/R/arm64/pkg/openssl-1.1.1m-darwin.20-arm64.list:opt/R/arm64/lib/libcrypto.a