"RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management" (source).
First, connect to the server with X11 forwarding; for more, refer to here. Next, load the Rstudio module.
module load rstudio
This module also provides R 4.4.1 (the only version available due to severe security flaws in earlier versions) and MPI.
To use the RStudio GUI:
rstudio
To use the GUI but keep being able to use the command line:
rstudio &
If a computation-heavy session is to be expected, it is highly recommended to allocate a compute node to do the work there. For more on that, refer to Salloc.