我使用 leiningen 构建了一个新项目来测试 incanter:
lein new testincanter
然后,在 project.clj 中,我放了这个:
(defproject testincanter "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[incanter "1.5.4"]])
然后我开始repl:
lein repl
万事皆安。
然后我这样做,
(ns testincanter.sample
(:use (incanter core datasets io optimize charts stats)))
然后它返回异常,例如:
java.lang.Exception: namespace 'incanter.charts' not found
或者
clojure.lang.Compiler$CompilerException: java.lang.NoSuchFieldException: createIntegerTickUnits
我已经分别尝试过 incanter.core、incanter.datasets、incanter.io...,
一切正常,除了 incanter.charts