R plugin for asdf version manager | plugins repository
- Homebrew: used to install the remainder of the dependencies
- brew install gcc xz libxt cairo pcre2
More details on environment variables setup for Mac OS builds can be found here.
- sudo apt-get install build-essential libcurl3-dev libreadline-dev gfortran
- sudo apt-get install liblzma-dev liblzma5 libbz2-1.0 libbz2-dev
- sudo apt-get install xorg-dev libbz2-dev liblzma-dev libpcre2-dev
asdf plugin add r https://github.com/asdf-community/asdf-r.git
Check asdf readme for instructions on how to install & manage versions of R.
When installing R using asdf install, you can pass custom configure options with the following env vars:
- R_CONFIGURE_OPTIONS- use only your configure options
- R_EXTRA_CONFIGURE_OPTIONS- append these configure options along with ones that this plugin already uses
RStudio (and some other libs) requires building R shared library. In order to do that pass an extra configure option to asdf install:
R_EXTRA_CONFIGURE_OPTIONS=--enable-R-shlib asdf install r <version>
maibe you'll need Cairo as well:
R_EXTRA_CONFIGURE_OPTIONS='--enable-R-shlib --with-cairo' asdf install r <version>