The problem
How can I run R on HiperGator within my terminal? The interactive RStudio server works okay, but whenever you request a longer running time or more memory, you will wait much longer in queue. I would prefer to just run R CMD BATCH
within my terminal.
Solution
Update: just use module load R
. No longer need to next steps.
It is probably documented somewhere by HiperGator. I just could not find it easily.
Here are the steps I followed.
- Login to HiperGator terminal, install
miniforge
andmamba
- Exit terminal and login back again
- In terminal, run
mamba create -n nameofmyenvi r-essentials r-base
- add additional packages you want to install, e..g,
r-torch
- or install later with
mamba install cuda-toolkit=11.8 pytorch
- add additional packages you want to install, e..g,
mamba activate nameofmyenvi
- In terminal, type
R
and now you should be able to open R- If running long time jobs, use
tmux
withmodule load tmux
, thentmux
- If running long time jobs, use