-
Notifications
You must be signed in to change notification settings - Fork 84
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
Not recognising R interpreter #3832
Comments
Can you provide us with the Positron Extension log please? See #3791 (comment). |
2024-07-03 13:25:18.526 [info] Log level: Debug |
Can you provide the complete log please? |
this is all i can see. how can i find the complete log? |
Gotcha! What's your operating system? Where is R installed on your machine and how did you install it? |
MacOS /usr/local/bin/R downloaded from the website (in fact after this i reinstalled and upgraded ot the latest version (4.4.1) ) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
When you say "downloaded from the website", I assume you mean CRAN. Can you confirm? From the "Download and Install R" section of https://cran.r-project.org/. Can you use R in the terminal? In RStudio? If so, what does |
Yes i can use everywhere. and I got it from cran R.home() shows |
Hmm, that's pretty surprising that the log just ends there 🤔 Maybe the developer tools is the next best place to look for info. How to access this is described in #3707 (reply in thread). |
Can you also paste the content from Positron > About Positron, please? For example, mine looks like:
|
And also show the result of R.version
#> _
#> platform aarch64-apple-darwin20
#> arch aarch64
#> os darwin20
#> system aarch64, darwin20
#> status
#> major 4
#> minor 4.0
#> year 2024
#> month 04
#> day 24
#> svn rev 86474
#> language R
#> version.string R version 4.4.0 (2024-04-24)
#> nickname Puppy Cup Created on 2024-07-03 with reprex v2.0.2 |
Positron Version: 2024.06.1 (Universal) build 54 |
platform aarch64-apple-darwin20 |
I added this however, i'm getting a new error now there (I've never had a problem on RStudio, btw. continues to work beautifully there)
|
and the log:
|
I think this got buried by my other requests. I still think it would be useful to get a look at the developer tools.
Update: maybe that's where the snippet in #3832 (comment) came from? Can you confirm? |
Jotting down a few notes mostly to myself: I find it odd that adding "/Library/Frameworks/R.framework/Resources" to the PATH unblocked discovery of multiple R versions (vs. just the current version). I tend to think there is something intermittent happening that ?perhaps causes a timing problem / delay? and that some random positive event coincided with modifying the PATH, i.e. that that is a red herring. Because this log looks completely normal to me now: #3832 (comment). Is the "Error: Socket connect timed out after 20 seconds" the real thread to pursue? |
More observations:
The equivalent log for me shows:
Can you do
I.e. the FWIW I highly recommend managing one's R installations via rig, if you are open to that: https://github.com/r-lib/rig. If you intend to have more than 1 R installation that is usable, you almost have to do that. |
Phew! that was it! While my system wasn't able to locate the interpreter, I had assumed this is where you set the path, and i ahd put somethign there. Now, FINALLY, it's all working for me! Thanks so much for all the support. |
Intent: Avoid confusion such as in #3832 where a user thought the path for Ark was the path for R. - Add a note that path to Ark is not path to R - Split advanced settings into a separate section. This way the most useful user settings are separated from the dev or debug settings and are easier for users to skim through. It might also give pause before trying adanced settings like the path to Ark. https://github.com/posit-dev/positron/assets/4465050/669161e2-3d54-4e9e-8a36-9c25fe39781a
Positron Version:
Steps to reproduce the issue:
What did you expect to happen?
The code to be run. Nothing happened. If I look at the interpreters on the top right, I only see Python, no R interpreters there. I've been using RStudio on my machine (with R 4.4.1) for a very long time now
Were there any error messages in the output or Developer Tools console?
No
The text was updated successfully, but these errors were encountered: