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

When I open the external browser, ggplot2 in vscode always encounters depth error. #184

Open
qikongwanli opened this issue May 5, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@qikongwanli
Copy link

qikongwanli commented May 5, 2024

Describe the bug

Whenever I launch the external browser to view the figures, ggplot2 in VSCode consistently runs into depth errors or fails to generate a figure. Yet, these errors disappear once I close the external browser

To Reproduce

(Write your answer here.)

Expected behavior

(Write your answer here.)

Screenshots

(Write your answer here.)

Environment

  • OS: win11
  • Browser: edge 124.0.2478.67
  • R version: 4.3.3
  • httpgd version: 2.0.1
  • vscode: 1.89.0
  • ggplot2: 3.5.1

Additional context

(Write your answer here.)

@qikongwanli qikongwanli added the bug Something isn't working label May 5, 2024
@nx10
Copy link
Owner

nx10 commented May 5, 2024

Could you post your ggplot2 version, the error message or a screenshot of what's going wrong?

@qikongwanli
Copy link
Author

Could you post your ggplot2 version, the error message or a screenshot of what's going wrong?

I use the latest version of ggplot2 (v3.5.1). Depth error of ggplot2 seems to be becoming common when I open external browser to view the figures. Thank you!

@jackchenry
Copy link

jackchenry commented May 6, 2024

I have been getting the same error.

Error in UseMethod("depth") : no applicable method for 'depth' applied to an object of class "NULL"

I used to get it occasionally but now its for every ggplot. Also not just in the external browser, in vscode R plot viewer too.

@nx10
Copy link
Owner

nx10 commented May 6, 2024

This might be a ggplot2 bug: tidyverse/ggplot2#3538

@johnnymdoubleu
Copy link

johnnymdoubleu commented May 20, 2024

I have been getting the same error.

Error in UseMethod("depth") : no applicable method for 'depth' applied to an object of class "NULL"

I used to get it occasionally but now its for every ggplot. Also not just in the external browser, in vscode R plot viewer too.

Same error was detected using gridExtra::grid.arrange().

My versions are,
R-4.4.0.
ggplot2-3.5.1
gridExtra-2.3
vscode - 1.89.1

@teunbrand
Copy link

@sofiabiffi
Copy link

Just flagging that I also have the same issue (R version: 4.3.3, httpgd version: 2.0.1, vscode: 1.89.0, ggplot2: 3.5.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants