Skip to content

asdf-community/asdf-r

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asdf-r

R plugin for asdf version manager | plugins repository

Dependencies

Mac

  1. Homebrew: used to install the remainder of the dependencies
  2. brew install gcc xz libxt cairo pcre2

More details on environment variables setup for Mac OS builds can be found here.

Linux

Ubuntu / Debian

  1. sudo apt-get install build-essential libcurl3-dev libreadline-dev gfortran
  2. sudo apt-get install liblzma-dev liblzma5 libbz2-1.0 libbz2-dev
  3. sudo apt-get install xorg-dev libbz2-dev liblzma-dev libpcre2-dev

Install

asdf plugin-add R https://github.com/asdf-community/asdf-r.git

ASDF options

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

Building R Shared Library

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>

Packages

No packages published

Languages

  • Shell 91.2%
  • Makefile 8.8%