Skip to content
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

Implement rExecutable discovery to prefer the active version of R within the IDE rather than path #2500

Open
sagerb opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2501
Open

Comments

@sagerb
Copy link
Collaborator

sagerb commented Dec 17, 2024

The code needs to identify the same version of R that the users have configured. This is passed in from the extension, but the backend code does not use this value consistently. To solve this, we need to make sure the correct path is identified, following our rules:

  1. Use the passed-in path for the R interpreter if supplied. It must exist and be validated)
    • If it doesn't exist, fall through to the next option
    • If it does exist but is not a valid R interpreter (use --version output to validate), then return an error
  2. Use the first R executable found on PATH; it must exist and be validated.
    • If not valid or doesn't exist, return an error

Once the interpreter is identified, it should be used for creating/retrieving the lock file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant