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

Plotting under Windows may require dev.flush #417

Open
djsamperi opened this issue May 30, 2023 · 1 comment
Open

Plotting under Windows may require dev.flush #417

djsamperi opened this issue May 30, 2023 · 1 comment

Comments

@djsamperi
Copy link
Contributor

Describe the bug
R only renders part of a plot, requiring the addition of dev.flush() after the plot command in a quasiquote.
A related issue is that the module Language.R.Event is not part of the Windows build, so the refresh
function is not available.

To Reproduce
[r| plot(0:200/20, sin(0:200/20), xlab='t',ylab='signal',type='l',col='blue',
main="Sine blue, Cosine red")
lines(0:200/20, cos(0:200/20) ,type='l',col='red') |]

This will display only the sine wave. To get both the sine and
cosine dev.flush() must be inserted after plot().

Expected behavior
R should render the entire plot generated by the plot command.

Environment

  • OS name + version: Windows 11
  • Version of the code: HaskellR 1.0.0

Additional context
If refresh from Language.R.Event could be provided for Windows,
this might eliminate the need to insert dev.flush() after every plot().

@facundominguez
Copy link
Member

refresh is unsupported in windows since it was introduced. Here's the PR adding windows support. Note f6ab979 in particular. It would be worth checking again if the same difficulties still stand to add the support.

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