0

Given Ubuntu 18.04 laptop; Anaconda 1.9; R-Studio and R installed independently by myself without using Anaconda.

When I am going to Ubuntu terminal and hit: which R:

/home/company/anaconda3/bin/R

R:

R version 3.5.1 (2018-07-02) -- "Feather Spray"....

nano ~/.bashrc:

# added by Anaconda3 installer

export PATH="/home/paygilant/anaconda3/bin:$PATH"

# Added by me:

export PATH=/usr/lib/R/bin/R:$PATH

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

SPARK_HOME=/home/paygilant/spark-2.4.0-bin-hadoop2.7

export PATH=$SPARK_HOME/bin:$PATH

R Studio uses latest R (3.5.2).

How do I "tell" Ubuntu to use the latest R version I have installed as first priority.

I suppose it's a PATH problem and priority.

Please advise.

3
  • 2
    IMHO you should remove Anaconda (smells as windows-way of package management) and install all components from APT.
    – N0rbert
    Jan 20, 2019 at 9:28
  • But how to force it work with what I need? @N0rbert
    – SteveS
    Jan 20, 2019 at 9:53
  • According to the rstudio documentation, you can use the RSTUDIO_WHICH_R environment variable: see Changing R versions for RStudio desktop Jan 20, 2019 at 14:33

0

You must log in to answer this question.

Browse other questions tagged .