Skip to content

Commit

Permalink
preparation for a snapshot and PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
genmeblog committed Sep 22, 2024
1 parent 6cbcfe2 commit b7d28e7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
12 changes: 6 additions & 6 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{:deps {org.clojure/clojure {:mvn/version "1.11.1"},
org.clojure/tools.logging {:mvn/version "1.3.0"},
scicloj/tablecloth {:mvn/version "7.029.1"}
{:deps {org.clojure/clojure {:mvn/version "1.11.1"}
org.clojure/tools.logging {:mvn/version "1.3.0"}
scicloj/tablecloth {:mvn/version "7.029.2"}
org.scicloj/clojisr-rengine {:mvn/version "0.1.2"}
;; org.rosuda.REngine/Rserve {:mvn/version "1.8.1"},
;; org.rosuda.REngine/Rserve {:mvn/version "1.8.1"}
hiccup/hiccup {:mvn/version "2.0.0-RC3"}
org.clojure/core.async {:mvn/version "1.6.681"}
org.scicloj/kindly {:mvn/version "4-beta4"}}
org.scicloj/kindly {:mvn/version "4-beta12"}}
:paths ["src"]
:aliases {:dev {:extra-paths ["resources" "notebooks"]
:jvm-opts ["-Dclojure.tools.logging.factory=clojure.tools.logging.impl/jul-factory"]
:extra-deps {org.scicloj/clay {:mvn/version "2-beta8"}
:extra-deps {org.scicloj/clay {:mvn/version "2-beta16"}
io.github.nextjournal/clerk {:mvn/version "0.7.418"}}}
:test {:extra-paths ["test"]
:extra-deps {io.github.cognitect-labs/test-runner
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject scicloj/clojisr "1.0.0"
(defproject scicloj/clojisr "1.1.0-SNAPSHOT"
:description "Clojure <-> R interop"
:url "https://github.com/scicloj/clojisr"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
7 changes: 7 additions & 0 deletions src/clojisr/v1/impl/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
(->clj [obj] obj)
(->native [obj] obj))

(extend-type nil
prot/RProto
(inherits? [_ _] false)
prot/Clojable
(->clj [obj] obj)
(->native [obj] obj))

(defn ->seq-with-missing
[xs missing]
(mapv (fn [d na] (when-not na d)) xs missing))
Expand Down
6 changes: 4 additions & 2 deletions src/clojisr/v1/require.clj
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@

;; alias namespaces
;; https://clojurians.zulipchat.com/#narrow/stream/224816-clojisr-dev/topic/require-r.20vs.20-require-python
(alias package-symbol r-ns-symbol)
(when as (alias as r-ns-symbol))
;; https://clojurians.zulipchat.com/#narrow/stream/224816-clojisr-dev/topic/clojisr.201.2E1.2E0/near/441026754
(if as
(alias as r-ns-symbol)
(alias package-symbol r-ns-symbol))

;; inject symbol into current namespace
(when refer
Expand Down

0 comments on commit b7d28e7

Please sign in to comment.