IBM Support

Paths in RStudio in DSX Local

Question & Answer


Question

What do the 4 different library paths in Rstudio mean in DSX Local?

Answer

When you install a package in RStudio it appears that the library path is `'/user-home/1005/rstudio'`. ?When you check environment variables using `.libPaths()`, however, four different paths are listed:

1. `/user-home/1005/rstudio`
2. `/user-home/_global_/R`
3. `/usr/lib64/R/library`
4. `/usr/share/R/library`

`/user-home/1005/rstudio` is where the packages the end-user can populate so that your versions of packages do not conflict with any other users. ?

Shared packages custom to an entire customer installation can be added to /user-home/_global_/R ?so that every end-user can see these ones and they are retained between launches. ?(i.e. if every user in a healthcare focused company needs custom healthcare specific libraries already available upon launch, the admin can add those packages to this global location).

The packages inside /usr/lib64/R/library and /usr/share/R/library are the base packages that are hard-coded into the RStudio image that ships and it is recommended not to touch these packages (because any time the container is stopped packages in those locations will disappear on relaunch). ?

[{"Business Unit":{"code":"BU051","label":"N\/A"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB33","label":"N\/A"}}]

Document Information

Modified date:
02 November 2020

UID

ibm10787259