FredHutch / easybuild-life-sciences

Howto and implementation documentation
https://fredhutch.github.io/easybuild-life-sciences/
21 stars 6 forks source link

RStudio Server does not have some dependencies set up properly #560

Open dtenenba opened 1 month ago

dtenenba commented 1 month ago

On the command line, you can load the RStudio Server module and see that fontconfig and freetype are already installed:

$ ml purge
$ ml RStudio-Server/2024.04.1+748-foss-2023b-Java-11-R-4.4.0
$ ml 2>&1| egrep -i "font|type"
 34) freetype/2.13.2-GCCcore-13.2.0
 37) fontconfig/2.14.2-GCCcore-13.2.0

However, when you actually run RStudio Server, it acts like those libraries are not present. For example, you can't build the systemfonts package from CRAN (this is already part of the R module, but it's just an example).

Also, I wanted to see if I could figure out which modules were loaded, from within rstudio server. I imagined I could look at the LOADEDMODULES environment variable (which I can do on the command line) but it is empty or not defined within RStudio Server.

This is related to two slack conversations:

https://fhdata.slack.com/archives/CD3HGJHJT/p1722035956418049 https://fredhutch-scicomp.slack.com/archives/D1E549M55/p1722023487236639 (private conversation between Dan and John)

And a ticket:

https://fredhutch.happyfox.com/staff/ticket/14915