Debian dependencies for some R Packages

Viewed 12

I'm about to install a R environment on my debian Debian GNU/Linux 11 (bullseye). I first simply ran

sudo apt-get --assume-yes install r-base

which worked. However, when installing some packages with install.packages("..") like keyring, lintr or usethis it requires me to install some debian libraries, e.g. libsodium-dev, libxml2-dev, r-cran-gert, libgit2-dev.

After installing these libs, everything worked fine. However, I was wondering if there is any way to pre-install all these debian libraries, e.g. with something like sudo apt-get install r-build-tools so that when I clear my setting and restart the installation process, I don't have to install required debian libraries manually.

Does s.th. come into your mind?

0 Answers
Related