Unable to load shared object on startup in RStudio only
I found the answer on RStudio Community: I had a typo in one of the variables used in Sys.getenv("PATH")
https://community.rstudio.com/t/unable-to-load-shared-object-on-startup-in-rstudio-only/33107
Unable to load any package in R (unable to load shared object)
As BondedDust has explained in the comments, the problem has to do with the permissions that are given to users. I am connected to a network where the libraries are saved on a shared space. The issue was resolved by moving the default library to a local path.
The process that needs to be followed to change the library to a local one is quite simple and it is mentioned in the second answer in this question on stackoverflow.
Related Topics
Warning in Install.Packages: Unable to Move Temporary Installation
R Fast Single Item Lookup from List VS Data.Table VS Hash
Read Multiple Xlsx Files with Multiple Sheets into One R Data Frame
In R, How to Check If Two Variable Names Reference the Same Underlying Object
How to View an HTML Table in the Viewer Pane
Shiny Dashboard - Display a Dedicated "Loading.." Page Until Initial Loading of the Data Is Done
Correct Number of Decimal Places Reading in a .Csv
How to Merge Two Data Frames on Common Columns in R with Sum of Others
Passing Parameters to R Markdown
Displaying True When Shiny Files Are Split into Different Folders
Expression and New Line in Plot Labels
Check If String Contains Only Numbers or Only Characters (R)
Union of Intersecting Vectors in a List in R