Using R 4.5.1 on Cheaha via RStudio Server
Default R Version
The latest version of R installed on Cheaha is R 4.4.1.
R 4.5.1 Availability
If you need R 4.5.1, you can use a container image created by Fortune of UAB RC’s team. Follow the steps below.
Steps
-
Launch an HPC Desktop job.
-
Pull the container image:
singularity pull rstudio-r451.sif docker://code.rc.uab.edu:4567/rc-data-science/community-containers/rstudio451/rstudio451:latest -
Create required directories:
mkdir -p $HOME/rstudio-server $HOME/rstudio-logs $HOME/rstudio-run $HOME/rstudio-etc
Note: The
rstudio-etcdirectory is required because RStudio Server attempts to write configuration files to/etc/rstudio, which is read-only inside the container unless explicitly overridden.
-
Start the container:
singularity run --writable-tmpfs -B $HOME/rstudio-etc:/etc/rstudio -B $HOME/rstudio-server:/var/lib/rstudio-server -B $HOME/rstudio-logs:/var/log/rstudio-server -B $HOME/rstudio-run:/var/run/rstudio-server rstudio-r451.sif -
Open a web browser within the HPC session and navigate to:
http://localhost:8787
This will launch RStudio Server. From there, install packages as usual and run your R scripts.
Ready to Use