genmeblog
genmeblog
Oh, thanks for the reminder. I believe I've tested it locally and everything worked. But it was 4 months ago.
Transfer from Clojure to R should go through Java RServe library structures which I believe is an optimal route. Here is how it's done for TMD: https://github.com/scicloj/clojisr/blob/master/src/clojisr/v1/impl/clj_to_java.clj#L32-L48 Possible it can...
Tensors in R can be represented as multidimensional arrays not matrices. Here is something done in the past (it's a transfer of flat data into 5d array): https://scicloj.github.io/clojisr/clojisr.v1.tutorials.dataset.html#matrices-arrays-multidimensional-arrays
Multidimensional arrays / tables in R are represented as flatten dataset on the Clojure side, like this 3d table: https://scicloj.github.io/clojisr/clojisr.v1.tutorials.dataset.html#table
Take a look at this line and below which converts multidimensional structure to flattened dataset. We can add another path to create tensors out of arrays. https://github.com/scicloj/clojisr/blob/master/src/clojisr/v1/impl/java_to_clj.clj#L94
Yes, that was the idea. To make any nd-array into 2d dataset. I know this is not perfect solution. In that time tensors weren't available (or I was not aware...
`cljdoc` tries to load a namespace and run a R session ``` INFO: [:clojisr.v1.session/make-session {:action :new-session, :id nil, :actual-session-args {:session-type :rserve}}] {:clojure.main/message "Execution error (AssertionError) at clojisr.v1.impl.rserve.proc/r-path (proc.clj:30).\nAssert failed: (not=...
Yes, it fails on CI. There is no R in the environment. `clojisr.v1.r` also will try to run a backend. https://github.com/scicloj/clojisr/blob/82b4b77e53cc938c95694f19512c6b0187de3a5b/src/clojisr/v1/r.clj#L127
We were working on new session management system to solve this issue. But never finished. Maybe there is a way to refactor current setup without changing the API but I...
This way every call `(r "`==`")` will be reevaluated, RObject created and so on. Anyway this is very good idea and I like it. We also get a function instead...