You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter how I start R, by default I install into libraries not used by the VS Code extension.
The workaround in future is just to start R in vanilla mode, and install languageserver and jsonlite, explicitly installing into the paths indicated by the VS Code R extension.
To use the above code then, just replace the value of lib_paths with the relevant value.
The text was updated successfully, but these errors were encountered:
Upon starting the container, we could run Rscript --vanilla -e '<cmd>; install.packages(c("jsonlite", "languageserver"))' where <cmd> is the following (with semi-colons in between):
# 1. get home directory#2. get .cache/R/ren/library subdirectory# 3. List whatever directories are in there, and `cd` into the one that was created last# 4.Cd into whatever directory was created last# 5. CD into the directory whose <major>.<minor> version matches current# 6. CD into whatever directory was created last/home/rstudio/.cache/R/renv/library/Prac23StatsSeecCourseSimpleReg-ebd2789b/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu
Libraries
Here are paths under various settings:
what worked (with sandbox enabled)
radian --vanilla
No matter how I start R, by default I install into libraries not used by the VS Code extension.
The workaround in future is just to start
R
in vanilla mode, and installlanguageserver
andjsonlite
, explicitly installing into the paths indicated by the VS Code R extension.To use the above code then, just replace the value of
lib_paths
with the relevant value.The text was updated successfully, but these errors were encountered: