Hi @Julia,
I am glad you're able to give this a shot! I know we had talked awhile back about your awesome internal packages and making it easier to share them.
Feel free to open a support ticket if you prefer to troubleshoot in that venue.
In this case, the error message is a bit confusing. It should say,unable to use R on this system _because_ the user namespace sandbox test failed, not because of an improper config location.
Package Manager attempts to run R CMD build for Git packages in a special, sandboxed process for security reasons. However, it appears that in your environment it is failing when trying to create that sandbox.
There are two options:
- If you completely trust the source code that you are building from Git (which you probably do if it is internal packages), you can tell Package Manager to skip the sandbox procedure by adding this to your Package Manager configuration file,
/etc/rstudio-pm/rstudio-pm.gcfg:
[Git]
AlllowUnsandboxedGitBuilds = true
- If you don't fully trust the code coming from Git (unlikely), you can typically resolve the sandbox error by running Package Manager as root.
For what it is worth, /usr/lib64/R as reported by R.home() is normally the path you want!
Best,
Sean