Code Monkey home page Code Monkey logo

asdf-r's Introduction

asdf-R

R plugin for asdf version manager.

Dependencies

  • Mac
    1. Homebrew: used to install the remainder of the dependencies
    2. brew install --cask xquartz
    3. brew install gcc xz bzip2 pcre2
    4. See the note below
  • Linux
    • Ubuntu / Debian
      1. sudo apt-get install build-essential libcurl3-dev libreadline-dev gfortran libbz2-dev liblzma-dev libpcre3 libpcre3-dev

Mac Notes

After installing the other dependencies, you may need to modify your environment a bit in order to pick up the dependencies from homebrew.

# Set bzip2 binary and compile paths
export PATH="/usr/local/opt/bzip2/bin:$PATH"
export CPPFLAGS="-I/usr/local/opt/bzip2/include $CPPFLAGS"
export LDFLAGS="-L/usr/local/opt/bzip2/lib $LDFLAGS"

# Set pcre2 binary and compile paths
export PATH="/usr/local/opt/pcre2/bin:$PATH"
export CPPFLAGS="-I/usr/local/opt/pcre2/include $CPPFLAGS"
export LDFLAGS="-L/usr/local/opt/pcre2/lib $LDFLAGS"

Install

asdf plugin-add R https://github.com/iroddis/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

Using RStudio

RStudio 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>

Thanks

Thanks to asdf-postgres for providing an awesome plugin that was easy to modify for this language.

asdf-r's People

Contributors

bennyhoward avatar iroddis avatar tomash avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.