Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The process that will be detailed works as of time of writing this workshop.

We will monitor this process - but if this doesn’t work then please contact ARCC.

...

General Process

Info

We will use the Conda Environment that we created in: Basic R Conda Environment

Process:

  1. Access OnDemand.

  2. Start an Interactive Desktop.

  3. Open a terminal.

  4. From the command-line set:

    Code Block
    # Using the path to your conda environment.
    # In this case: /project/

...

  1. <project-name>/software/conda-envs/r_4.3.3_env
    export PATH=$PATH:/project/

...

  1. <project-name>/software/conda-envs/r_4.3.3_env/bin/
    export RSTUDIO_WHICH_R=/project/

...

  1. <project-name>/software/conda-envs/r_4.3.3_env/lib/R/bin/R
  2. Load rstudio.

  3. Start rstudio from the command-line.

...

What did we do?

Info

Using the path to the conda environment in which we setup R, we extended the PATH environment to this conda environments bin folder, and then set the RSTUDIO_WHICH_R environment variable to the R executable within this environment.

...

Note

There is a rstudio conda package, but this hasn’t been updated since early 2020.

Due to the age of this version, ARCC has not tried to use this old version.

...