-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LD_LIBRARY_PATH is not properly exported #1515
Comments
Can anybody please let me know if this is something that can be adressed? |
Thank you for the reply @eitsupi. I have a renv library The problem that I have is that when I launch R from VSCode I cannot load any of the libraries which is within If i start the R terminal outside the VSCode I can normally load those libraries. The problem in my opinion is how R is started within VSCode and outside. Outside of VSCode:
Within VSCode:
I am using VSCode to connect remotly to HPC. Within HPC, R is available as module, when i Any help would be greatly appreciated. |
@renkun-ken would you mind having a look into this? |
I have no idea what the "correct" solution is here but the following workaround seems to work for me:
module load R
export LD_LIBRARY_PATH=<what ever you need>
R $@
{
"r.rterm.linux": "${workspaceFolder}/bin/loadR.sh"
} When you then attach R via the command pallete this should have the correct environment set up. |
Describe the bug
Attaching R doesn't properly sets
LD_LIBRARY_PATH
(it leads to errors when loading libraries). When I lunch R from system (the same one which I specify inr.path
andr.term
) has additional libraries on path as compared to attached R. I tried to update theLD_LIBRARY_PATH
in.vscode-server/extensions/reditorsupport.r-2.8.2/R/session/init.R
. when I attach R afterwardsSys.getenv("LD_LIBRARY_PATH")
give updatedLD_LIBRARY_PATH
, however it seems like the libraries are still not accessible and the same error persist:loading libraries in manualy launched R works with no errors.
To Reproduce
Can you fix this issue by yourself? (We appreciate the help)
No
Environment (please complete the following information):
Thank you and kind regards,
Amel
The text was updated successfully, but these errors were encountered: