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

Plot does not render when combined with ggsave()? #6114

Closed
strengejacke opened this issue Jan 24, 2025 · 2 comments
Closed

Plot does not render when combined with ggsave()? #6114

strengejacke opened this issue Jan 24, 2025 · 2 comments
Labels
info needed Waiting on information

Comments

@strengejacke
Copy link

strengejacke commented Jan 24, 2025

System details:

Positron and OS details:

Positron Version: 2025.02.0 (system setup) build 79
Code - OSS Version: 1.96.0
Commit: a268bc8
Date: 2025-01-21T02:49:15.664Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100

Interpreter details:

R 4.4.2

Describe the issue:

A plot does not render when plot + ggsave() are run together.

Steps to reproduce the issue:

Following code: select code without ggsave() command and run it - plot renders. Select full code including ggsave, run it, and plot does not render (but gets saved). Repeated running full code shows the plot history in the image thumbs (clicking on them shows the plot), but does not render plots as long as the ggsave-command is included.

library(ggplot2)
ggplot(iris, aes(x = Petal.Length, y = Petal.Width, colour = Species)) +
  geom_point()

ggsave("test.png", width = 11, height = 7, units = "in")

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

Image

(error says: "System cannot find the specified file")

Image

@juliasilge
Copy link
Contributor

I believe this is the same as #3915. Want to take a look and see if you have additional details to add?

@juliasilge juliasilge added the info needed Waiting on information label Jan 25, 2025
@strengejacke
Copy link
Author

Ah, yes, it's a duplicate. Will close this one.

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

No branches or pull requests

2 participants