RStudio Server not finding R

Hi all,

I have downloaded and installed Rstudio Server. When I start the server the following message appears on the log file: "[rserver] ERROR Path to R not specified, and no module binary specified; Invalid R module (); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:837"

Oh well, that seemed simple enough to fix, just set some variables and paths on some configuration files right? I have tried:

  1. Configuring R path in Rstudio conf files
  2. Exporting R_HOME variable in “/etc/environment” file
  3. Reinstalling R and creating symlinks

Oh well, nothing worked. Any insights? My Rocky is ver. 9.1
Cheers