Hello all. I installed R 4.1.3 and RStudio-Server 22.214.171.124 on a Linux (RHEL 8.7) server. For every RStudio user, there is an automatically created "R" directory in the user's home directory, like /home/username/R. In my case, the /home mount point doesn't have much size so I am trying to set everything to run & save to a different directory that has much more storage allocated.
I've changed the "TMPDIR", the Library path to download & install packages, the working directory (setwd) and the Default working directory that is within the Global Options. So now all these don't use the /home/username/R directories. It's working as expected when downloading & installing packages.
However, when I run R scripts, even a small scoped one, for some reason, it still consumes quite a bit of storage in the R directories, as well as the hidden directory /home/username/.local. What are these and is there a way to prevent it from using the /home/username storage and instead using the other directory that has more storage? Please advise.
See below Linux command results after running the R script that gets a list of directories that use the most storage in the /home/username directory.
457M /home/username/R 457M /home/username/R/x86_64-pc-linux-gnu-library 457M /home/username/R/x86_64-pc-linux-gnu-library/4.1 680M /home/username/.local/share/rstudio/sessions/active/session-c6264382/graphics-r3 705M /home/username/.local 705M /home/username/.local/share 705M /home/username/.local/share/rstudio 705M /home/username/.local/share/rstudio/sessions 705M /home/username/.local/share/rstudio/sessions/active 705M /home/username/.local/share/rstudio/sessions/active/session-c6264382 1.2G /home/username 1.5G /home Size Used Avail Use% Mounted on 2.0G 1.6G 486M 77% /home