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 help doesn't work in R terminal #69

Closed
royfrancis opened this issue Jul 10, 2024 · 5 comments
Closed

R help doesn't work in R terminal #69

royfrancis opened this issue Jul 10, 2024 · 5 comments

Comments

@royfrancis
Copy link

royfrancis commented Jul 10, 2024

When asking for help from the R terminal using ?, I get the following error: 'Couldn't show help for path:'.

Screenshot 2024-07-10 at 14 44 52

Details:

I am running a docker container (ghcr.io/rocker-org/devcontainer/geospatial:4.4) on a Mac M3. And I have attached to the running container through VS Code Dev Containers extension. I get this error in the R terminal (Maybe Radian?). If I open up a regular terminal and enter R and ask for help, it opens in the terminal itself.

Screenshot 2024-07-10 at 14 47 28

Not really sure if this is related to the container or VS Code or an extension. Anyone else experiencing this? Happy to give more info if needed.

Docker Desktop: 4.30.0
VS Code: 1.91.0
Extensions:
  REditorSupport: 2.8.4
  Dev Containers: 0.375.1
@eitsupi
Copy link
Member

eitsupi commented Jul 11, 2024

I have been using these images for the past several years on Windows and Linux and have never experienced such a situation.

Could it be due to the amd64 emulation of the arm mac? Does the same thing happen when using the arm64 images (such as ghcr.io/rocker-org/devcontainer/r-ver:4.4)?
In any case I am unable to use macOS so debugging is not possible.

@royfrancis
Copy link
Author

royfrancis commented Jul 11, 2024

I have always used --platform linux/amd64 to avoid the apple silicon related issues, so i decided to try aarch64 as you suggested.

docker pull ghcr.io/rocker-org/devcontainer/r-ver:4.4
docker run -ti --rm ghcr.io/rocker-org/devcontainer/r-ver:4.4 bash

I see the same.

Screenshot 2024-07-11 at 10 03 29

The web based help is unable to open. If it works for you, then it cannot be an issue with the container. It's probably something to do with my local setup. I am not exactly sure how it's supposed to open. In the viewer? Or somewhere else? Is it a port issue? But, interactive graphics, htmlwidgets, shiny apps etc do work and open up in the viewer.

Screenshot 2024-07-11 at 10 17 03

@eitsupi Would you be able to share a screenshot of how it looks like for you?

@eitsupi
Copy link
Member

eitsupi commented Jul 11, 2024

@royfrancis If my guess is correct, you have misunderstood the use of VS Code Dev Container. Please check the documentation.
https://code.visualstudio.com/docs/devcontainers/create-dev-container

You should be able to check with GitHub Codespaces for the correct behavior (I can share screenshots right now).
https://github.com/rocker-org/devcontainer-try-r

@royfrancis
Copy link
Author

royfrancis commented Jul 11, 2024

Hmmm.. The examples you have linked uses devcontainer.json to set up some config, install extensions etc.. I just didn't use that for my example. I am not sure if that should make a difference with regard to the issue with R help.

Anyway, I also tried out the Github Codespaces link that you provided. Same result when I ran it in my local installation of VS Code.

Screenshot 2024-07-11 at 20 30 38

But it worked when I ran it in the browser.

Screenshot 2024-07-11 at 20 40 52

So, perhaps it's related to my VS Code installation? Hmmm 🤔

@eitsupi
Copy link
Member

eitsupi commented Jul 12, 2024

Interesting, since it seems to be a VSCode issue, I suggest you ask the question in the VSCode repository.

I will close this repository as it is irrelevant to this repository.

@eitsupi eitsupi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
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

No branches or pull requests

2 participants