I installed R 4.1.3 and RStudio-Server 2.22.12.0 on a Linux (RHEL 8.7) server. I am able to access RStudio without any problems, however, I am getting the following errors when trying to install some packages. Note, I was able to download and install other packages so it's not that everything failed to install. The rstudio_tester user's home directory is fully accessible. I tried assigning all the permissions (777) to it but still getting the same errors. I am new to Linux and to RStudio. Please help. Thank you.
Below is an example.
install.packages("formattable")