Cannot find incanter-datasets or -stats jars in clojars or maven

118 Views Asked by At

I am experiencing something very peculiar while attempting to use incanter. In my lein project.clj file I set up dependencies for -datasets and -stats (and core, etc.), then do 'lein deps', which reports that these jars are not found in maven or clojar repos. When I look in ~/.m2/repositories/incanter there are folders for 1.5.4 datasets & stats but they contain no jars. All the other incanter packages have 1.5.4 jars and the older versions such as 1.4.1. Hopefully someone can shed light on these missing items.

1

There are 1 best solutions below

4
On

there is no separate incanter-stats & incanter-datasets modules. The namespace incanter.stats is in the incanter-core package, while incanter.datasets is in the incanter.io package.

Full list of modules you can find in the modules directory on the github, or in my presentation about Incanter.

You need to add following to your project.clj:

:dependencies [[incanter/incanter-core "1.5.4"] 
               [incanter/incanter-io "1.5.4"]
              ...]

and use following in your ns declaration:

(:use [incanter core io stats datasets]))

P.S. I think, that main source of confusion is separation of namespaces (incanter.core, incanter.io, etc.) into packages (modules) that are distributed via clojar...