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

[BUG] Plotting with R not working #361

Open
ndombrowski opened this issue Jun 8, 2024 · 2 comments
Open

[BUG] Plotting with R not working #361

ndombrowski opened this issue Jun 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ndombrowski
Copy link

Describe the bug
I am running some R code and printing works completely fine but I seem unable to generate plots.

Software Version
I am running Obsidian 1.6.2 on Windows 11 and use the WLS2/Ubuntu 20.04.6 option with the plugin version 1.12.0.

To Reproduce

As an example, I tried running the following:

y = c(1,2,3,4)
x = 1:length(y)

plot(x,y)

This code returns "Error in plot.new(): could not open file 'C:/Users/xx/AppData/Local/Temp/temp_1717854434076.png'". I don't see the image appearing in the mentioned folder.

Otherwise, I can run the R code fine using the plugin and I can for example print variables. In case its useful, I can successfully generate plots in python.

Many thanks for any input and thanks for the great plugin!

@ndombrowski ndombrowski added the bug Something isn't working label Jun 8, 2024
@psl-schaefer
Copy link

I just came across your bug report and for me everything work fine, e.g. with

x = 1:10
y = rnorm(length(x))
plot(x, y)

I get
image

@twibiral
Copy link
Owner

twibiral commented Dec 4, 2024

Hmm, maybe I already fixed it and forgot to close this issue. @ndombrowski can you try it again with the current version of the plugin?

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

3 participants