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

R.home("include") points to wrong place for apt installed R in Ubuntu 22.04 - prevents finding header <R.h> #4133

Closed
shikokuchuo opened this issue Jul 23, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists lang: r os-linux Linux issue support

Comments

@shikokuchuo
Copy link

Positron Version:

Positron Version: 2024.07.0 build 81
Code - OSS Version: 1.91.0
Commit: f173405
Date: 2024-07-19T03:07:26.846Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-44-generic

Steps to reproduce the issue:

In Positron:

> R.home()
[1] "/usr/lib/R"
> R.home("include")
[1] "/usr/lib/R/include"
> R.home("bin")
[1] "/usr/lib/R/bin"

As the include path is wrong, this means syntax highlighting fails for C files as the <R.h> system header is not found.

What did you expect to happen?

In Rstudio / the R console:

> R.home()
[1] "/usr/lib/R"
> R.home("include")
[1] "/usr/share/R/include"
> R.home("bin")
[1] "/usr/lib/R/bin"

This is for apt system package manager installed R on Ubuntu 22.04 (and I assume later versions).

Were there any error messages in the Output panel or Developer Tools console?

NA

@shikokuchuo shikokuchuo added the bug Something isn't working label Jul 23, 2024
@lionel-
Copy link
Contributor

lionel- commented Jul 29, 2024

oh I bet that will be fixed by #3637, so I'm going to close as duplicate

@lionel- lionel- closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2024
@lionel- lionel- added the duplicate This issue or pull request already exists label Jul 29, 2024
@shikokuchuo
Copy link
Author

Sounds plausible.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working duplicate This issue or pull request already exists lang: r os-linux Linux issue support
Projects
None yet
Development

No branches or pull requests

3 participants