How to configure the R interpreter? #3677
Replies: 24 comments 37 replies
-
Same question here. We can't use the standard |
Beta Was this translation helpful? Give feedback.
-
Positron reads the system registry to discover R versions. R typically writes to the registry when it's installed. If you manually installed R to a different location, you can add a couple of registry keys to point Positron in the right direction. They're documented here: https://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-use-the-Registry_003f It's reasonable to expect Positron to pick up anything on the |
Beta Was this translation helpful? Give feedback.
-
@slodge We consult the keys in (Whether we can stick with this strong prioritization of explicitly 64-bit artefacts is obviously another question.) |
Beta Was this translation helpful? Give feedback.
-
In particular if you click directly on the |
Beta Was this translation helpful? Give feedback.
-
It would also be very helpful if one of you could do this: Can you please copy and paste in your full |
Beta Was this translation helpful? Give feedback.
-
Hello, I believe my case is a bit different, as in my situation the registry keys are correct. It is important to highlight that I install the R versions using the CRAN installer, only changing the installation path.
Regarding my specific case, according to the logs, it seems that Positron is trying to modify the registry when making the query, which the system does not allow because, in my case, it is blocked by company policies. From my point of view, this is very common. The translation of this "ERROR: el administrador ha deshabilitado la modificaci�n del Registro." into English is "ERROR: The administrator has disabled registry modification."
Regards, |
Beta Was this translation helpful? Give feedback.
-
This sort of answer is what gives / gave me hope that you should be able to edit entries below https://stackoverflow.com/q/53135 As for different tools having different levels of access to the registry, one hypothesis is that it comes from how they access the registry. Positron is using an npm module (winreg) and, all things considered, I think this is preferred to shelling out, e.g. calling These registry keys are basically the official way to advertise R installations on Windows, so it's unfortunate that your company policies make the registry effectively unreadable for certain methods of access. https://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-use-the-Registry_003f-1 Note this sentence, which also suggests that you should be able to set entries below HKEY_CURRENT_USER:
My main summary of this discussion is that we should pick up on an R executable on the PATH for Windows (which we're already tracking in #3702). |
Beta Was this translation helpful? Give feedback.
-
Hi, Finally, for it to work, the administrator had to exclude my user account from the Active Directory policy, and with that, it worked. Now I have a question: if I have several versions of R installed that are correctly registered in the registry keys, why does it only recognize R 4.4.1? Regards, |
Beta Was this translation helpful? Give feedback.
-
I'm facing hte same issue in my Mac. Been using RStudio for ages now (and it's been working great) but Positron is just not able to find the R interpreter. I added "/usr/local/bin/R" (where R is installed) into my path, but still not picking up. |
Beta Was this translation helpful? Give feedback.
-
I know the developers are working on a fix and will likely fix this issue soon. But for those who want to try Positron out before that, I will add a fix that worked for me on Windows. The issue seem to be related to where positron is looking for the "InstallPath" String value in the Registry editor. I added a link to the PDF file as well as images of it. |
Beta Was this translation helpful? Give feedback.
-
Excuse me Jennifer, but I don't understand: I am using R v 4.2.1. (as mentioned ).
I should also have mentioned that I installed positron v 2025.07.0 build 125 (the latest I saw)
Best,
Jan - Jaap
Sent from Proton Mail Android
…-------- Original Message --------
On 8/6/24 16:57, Jennifer (Jenny) Bryan wrote:
In your case ***@***.***(https://github.com/janjwesselink), the problem is that Positron only supports R >= 4.2.
If you look in the output channel for the Positron R Extension, you will presumably see that your R installation is being discovered, as it's in one of the standard locations we check. But then it's being discarded due to not being recent enough.
—
Reply to this email directly, [view it on GitHub](#3677 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AFOIORV52DVKQHK52Q5BGF3ZQDP4HAVCNFSM6AAAAABKBDGRYWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRVGQ4TKMA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I can't see anything related in Positron, also there is no R under the "start interpreter" button (I could start Python, but want/need R for now :) ) |
Beta Was this translation helpful? Give feedback.
-
Oh dear, I read to quickly.. apologies! I was able to install R 4.4.1 by adding the CRAN repository (for Ubuntu) and it seems to be working now (I was able to start the interpreter in Positron). Sorry for being a nuisance and thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@kkedji You are probably another case of what's described in #4280. I suspect the PR that made it possible to discover R on the PATH on Windows is causing it not to be discovered in other ways, for some subset of users. I am hoping someone can provide logs for us to compare in two adjacent versions of Positron, i.e. before and after the regression. |
Beta Was this translation helpful? Give feedback.
-
Hi @jennybc , following your last instructions on #4280 to add the Path environment variable, I am able to see the R interpreter now. |
Beta Was this translation helpful? Give feedback.
-
@jennybc I have the same problem. #4280 aligns with the issues I have with the current release. I rolled back to the previous version and the R interpreter is available. I'll gladly share logs for the two adjacent versions if you can provide some direction. |
Beta Was this translation helpful? Give feedback.
-
@keitheleejr I will continue the effort to get logs from someone in #4280. |
Beta Was this translation helpful? Give feedback.
-
@jennybc I can do that. I forgot you linked to the wiki for directions. I just took a screenshot of my logs for 2024.07.0-125. I'm currently installing the current release. I'll post the logs in #4280. |
Beta Was this translation helpful? Give feedback.
-
FWIW, I have this issue b/c my organization requires R be installed to User's folders (we are not allowed to install as administrator). So I guess I will have to wait for a patch unless by some miracle the forgot to turn off my registry editing abilities? Anyhow, another thing that I wanted to mention is that a LOT of people who run windows these days will also run WSL. So that begs the question: are there any plans to have Positron find THOSE environments? |
Beta Was this translation helpful? Give feedback.
-
Is there any way to specify R path explicitly? Since I'm using scoop to maintain my R installation, there's no registry for it and R Extension's output:
|
Beta Was this translation helpful? Give feedback.
-
I also have this problem. I take it that my version of R is too old though: In RStudio I get this.
|
Beta Was this translation helpful? Give feedback.
-
FYI for folks in or reading this thread: improved R discovery in releases starting with 2024.11 should result in solving the problem of the OP:
Any R installation that is advertised in the registry should be now be discovered by Positron, whether or not it is the current or most recent R installation. (We are also using different tooling to consult the registry that we hope is less likely to run into permissions problems, i.e. that at least takes maximum advantage of what permissions the user actually has.) |
Beta Was this translation helpful? Give feedback.
-
These are the most official ways to registering the existence of and preference for an R installation (and those are general conventions for software, not just R). And yes in #2235 we will create another configuration point where a user can direct Positron to look in some non-conventional location. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been trying out this new IDE, and for Python, Positron detects the interpreter correctly. However, it doesn't detect the R interpreter.
When I run R --version in the console, the system detects the R version without any issues.
It is important to mention that R is installed in a non-default path, and the PATH configured in the environment variables is: "C:\Users\apalacio\Documents\R\R-4.4.0\bin\x64".
Is there anything else that needs to be configured?
Regards,
Beta Was this translation helpful? Give feedback.
All reactions