-
Notifications
You must be signed in to change notification settings - Fork 130
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
R and radian paths per project folder/conda environment (i.e. make vscode-R design like vscode-python) #1130
Comments
This is going to be the blind leading the blind, so if someone else can chime in that'd be great. But what happens when you open the command prompt (F1) and run the command R: Create R terminal ? What settings do you have for the vscode-R extension for Rterm path? One way forward would be to make a wrapper script and point the Rterm path to that, something like: ~/activate_local_conda_and_start_R.sh
|
My Why didn't the |
Repeating what I wrote in #696 which is pretty much asking for the same thing and what isn't mentioned there is many R users will not have a single R install and will use something like mamba/conda where, per project/github repo, one will have a conda environment with it's own R, radian, and libraries each with their own versions/builds required by that particular project. The feature request for me would be to make Then in the lower right-hand status bar should show in place of the Also this entire thing with |
I kinda like to squeeze the --r-binary=/path/to/bin/R.exe (notice not going further down architecture paths like x64 or i386 here) in there in the "additional parameters" and then making the architecture a parameter there as well with providing |
This issue is stale because it has been open for 365 days with no activity. |
Met the same problem as the original question. Try to attach R within a conda env but without any luck. |
If I understand correctly, now being another year later, I still have to manually go to vscode settings and change the path in .. And nobody cares that this is horrendous? |
I'm new to VSCode (just moved from Atom because it's being retired), and I'm trying to understand how to set up the R extension to work seamlessly with conda environments at the project folder level. Each of the project folders in my workspace is associated with its own conda environment, with it's own R and radian builds/versions and libraries. But when I go to my settings, the R extension settings disappear when you look at the folder level vs workspace level.
How can I set up the R extension to automatically switch to the appropriate project folder conda environment R, radian, and libraries for the project file I currently have open within that specific project folder? VSCode can do this with python and I've set that up, so every time I open a code file from a specific project it just context switches to the appropriate conda environment, python, and libraries.
I want to do the same with R. But when I open an R file in a project folder, in the status bar it shows
R: (not attached)
. When I try to attach it with an open terminal the auto-pasted.vsc.attach()
doesn't work. Cannot figure out how to fix this.The text was updated successfully, but these errors were encountered: