scicloj / clojisr

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

can loading ns clojisr.v1.applications.plotting avoid R startup ? #96

Open behrica opened 6 months ago

behrica commented 6 months ago

It would be good , or we can avoid that "requiring" the plotting ns starts R. We should try to postpone this up to the point when plot-xxx functions are called.

To fix #94

would need before fixing #95

genmeblog commented 6 months ago

continuing here

Below var should be delayed: https://github.com/scicloj/clojisr/blob/master/src/clojisr/v1/applications/plotting.clj#L16

This should be inlined: https://github.com/scicloj/clojisr/blob/master/src/clojisr/v1/applications/plotting.clj#L41

This should be removed: https://github.com/scicloj/clojisr/blob/master/src/clojisr/v1/applications/plotting.clj#L14

All calls to R should be inlined whithout loading grDevices