Closed wsteenhu closed 6 months ago
It seems that indeed, the error arises because vscode-R starts looking for packages locally (instead of on remote).
Setting the r.libPaths
-setting to the local R-library indeed solves the issue (no popups anymore).
This however does not seem like desired behaviour.
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Describe the bug When connected remotely to the HPC of our institution (remote-SSH), and running R, I keep on getting the following error messages when hovering over R-code:
jsonlite
is installed and r.rpath.linux points to a valid R executable.jsonlite is installed and r.path.linux should point to a valid R executable (on the remote).
I suspect there is an issue with the local (
\C\Users\<username>\AppData\Roaming\Code\User\settings.json
)vs remote (~/.vscode-R/settings.json
) settings.json-files, resulting in these warnings/errors. Maybe VS code locally looks for jsonlite and the R executable, which it cannot find. Of note, it seems apart from these constant pop-ups, code execution goes well. Something similar has been described here, but I cannot find a solution to my problem.To Reproduce Steps to reproduce the behavior:
Can you fix this issue by yourself? (We appreciate the help)
No, but I really think local and remote settings.json files are clashing.
(If yes,) can we assist you with anything?
Yes, I would really like to have R smoothly working on the HPC-server (without these very annoying popups).
(If applicable) Please attach
setting.json
Local
settings.json
(see path above)Remote
settings.json
(see path above)Expected behavior The messages should not appear. Please note, I currently run R through a conda installation, but previously the same thing happened when using a module including R. In addition, on a previous HPC (also working remotely through SSH), I had the same issues (so apparently, I consistently do not have the correct settings).
Screenshots
Environment (please complete the following information):
Additional context