scicloj / clojisr

Clojure speaks statistics - a bridge between Clojure to R
https://scicloj.github.io/clojisr/
Eclipse Public License 2.0
147 stars 9 forks source link

Can't use `httpgd` to render image. #89

Closed lkyhfx closed 2 months ago

lkyhfx commented 6 months ago

I have attempted to use httpgd like this:

(require-r '[httpgd :refer [hgd hgd_browse]])
(hgd)
(->> rand
     (repeatedly 30)
     (reductions +)
     (plot :xlab "t" :ylab "y" :type "l"))

The image is rendered in the right sidebar successfully, but neither can you click the image to view or download. image

It seams that httpgd server is closed.

genmeblog commented 6 months ago

Confirmed.

When I called grDevices/dev-list the device (httpgd) is still active. dev-off hangs everything...

I need some time to investigate the issue.

genmeblog commented 6 months ago

The problem is in the httpgd not in clojisr itself. I created an issue there: https://github.com/nx10/httpgd/issues/144

genmeblog commented 2 months ago

Closing since it's not related to clojisr