HaskellR icon indicating copy to clipboard operation
HaskellR copied to clipboard

Hang with plot on macOS

Open JulianZhang opened this issue 7 years ago • 3 comments

Dear all

I had try to plot on H as blow

Prelude H.Prelude> let a=[1.0,2.0,3.0,5.0,6.0,7.0,3.0,2.0,1.0]::[Double]
Prelude H.Prelude> [r|plot(a_hs)|]
0x00007fa538849d78

The plot will show as a new exec application.

But it will hang and no response, I can't close it or show a new plot.

And if I kill the poped application the ghc will be killed, the H will exit.

Prelude H.Prelude>
ghc: signal: 15

JulianZhang avatar Oct 12 '16 08:10 JulianZhang

I just ran into this today trying to get inline-r working in IHaskell. Did you happen to find a workaround?

lgastako avatar Jul 11 '17 00:07 lgastako

No, the plot didn't work on my mac

JulianZhang avatar Jul 12 '17 02:07 JulianZhang

I'm running into something similar on Ubuntu 17.10. Using GHCi directly with inline-r I am unable to close plot windows by clicking the window "x".

This is potentially different from what the mac users are experiencing, I can replace the plot by issuing another plot call, and close it by running [r| dev.off() |]

cfhammill avatar Sep 15 '18 15:09 cfhammill