awb99
awb99
starting.. initializating R.. calculating sin of 3.14 done!
defs usage. ``` (defs a 1 b 2) ``` this is identical to ``` (def a 1) (def b 2) ```
I would NOT do something like cljsjs. cljsjs is a thing of the past. shadow-cljs solved the poblem of npm dependencies and externals. r-deps.edn ``` {:engine :rserv :deps [base math...
You can also do the interpreter approach that you do now; so it you have he startup cost at each startup. But you would have the huge advantage, that r...
You are absolutely right! It definitely does not make sense to you inside the library will not provide a fixed module definition edn. Instead clojisr generates this on the users...
With my proposal, the syntax would change from: ``` (defn load-quakes-r [rmin rmax] (-> 'quakes (r.dplyr/filter `(& (>= mag ~rmin) ( quakes (r.dplyr/filter (& (>= mag rmin) (robject)) args))] (send-to-r...
The forbidden Symbol problematic: totally agreed! There needs to be some kind of escaping. If I remember correctly this happens in cljs -> ks compilation also. (defn init! [] ...)...
(send-to-r :exec r-fun-name args-robject) For Rserv in my example the send-to-r function will generate the following that is sent to R: ``` " P123 = min) and (mag
Sorry for my most likely not precise R code. I am not an R expert. So most likely my R code is not correct. But I hope you get the...
I didn't test. I think you are right, and it will not work. As I said above.. I only tested the clj code I pasted above.