Thanks so much Marshall.

Adding "-Djava.awt.headless=true" to my :jvm-opts does indeed fix the 
"additional java process" problem, so that's helpful if I don't find an 
alternative to incanter.

The R options are interesting but probably not a good solution in my case; I'll 
be calling these tests millions of times and I'm guessing that the overhead 
would be a problem.

FWIW another issue I've had with incanter is confusion figuring out what 
dependency to use. This wasn't clear to me from the main incanter 
documentation, searching clojars for incanter returned a lot of things that I 
didn't know what to do with, and then I eventually found the github page (which 
you also suggest) which shows [incanter "1.5.6"] under "Include in Clojure 
project", which worked... But then, looking more carefully at the clojars 
result I see that there's also 1.9.0 and now I've switched to that, and it also 
works... But this all seems very weird because the project.clj in the github 
repository lists ""1.5.7-SNAPSHOT", making me think that maybe 1.5.6 is the 
current stable version. To make matters worse I thought it might be better to 
use only the stats module and tried things like [incanter-stats "1.5.6"] and 
[incanter/incanter-stats "1.5.6"], but none of that worked and I guess now that 
maybe stats isn't a separate module? In namespaces I require only 
[incanter.stats :as stats] and that works, although it did trigger the swing 
stuff untill i added -Djava.awt.headless=true.

Anyway, I'm in somewhat better shape now but still confused about some things, 
uneasy about the comment in the source code indicating the wrongness of the 
t-test code, and hoping for something that will be easier to understand and 
work with... if there's any simpler option out there.

Thanks,

 -Lee


> On Jun 1, 2015, at 10:40 PM, Mars0i <marsh...@logical.net> wrote:
> 
> One option would be to call R from Clojure.   I haven't tried this, and I 
> don't know how well it would fit your needs.
> 
> Rincanter 
> <http://joelboehland.com/posts/all-your-datasets-r-belong-to-us.html> is 
> supposed to allow this.  Presumably it would bypass the Incanter functions 
> that you don't want to use.
> 
> Rincanter is apparently a wrapper around JRI <http://www.rforge.net/rJava/>, 
> a Java library for calling R.  You could probably use that directly, without 
> using Rincanter.
> 
> I can't figure out whether R-nREPL <https://github.com/vspinu/R-nREPL> is 
> also a possible solution, but maybe it is.
> 
> 
> About this:
> "Requiring incanter seems to be making my program launch an additional java 
> process, which is mysterious and unwelcout ome":
> 
> I think you're probably referring to the fact that some Incanter components 
> load Java's Swing library, which causes a little Java icon to appear (on my 
> Mac, at least).  Yeah, that is annoying, if you don't need graphical output.  
> But you can avoid it.
> 
> First, I'd make sure that you are using the latest Incanter library, e.g. by 
> pasting the appropriate lines (see Incanter's github repo) into a Leiningen 
> project.clj file.  If you're using the standalone Incanter 
> application--sometimes that's older, and you will have less control over 
> what's loaded.  Second, only use or require the components you need--but you 
> probably need one of the ones that loads Swing by default.  Third (this is 
> the key):  Add 
> :jvm-opts ["-Djava.awt.headless=true"]
> to your Leiningen project.clj.  That will prevent the Swing icon from popping 
> up.  
> 
> You might also want to ask for help on the numeric-clojure Google group or 
> the Incanter group, or filing issues on the Incanter github repo.  The latter 
> might not be your cup of tea, of course.
> 
> (There's an open issue about the Swing popup that I filed (#255).  Incanter 
> is a huge project, and there are understandably lots of issues that the folks 
> working on it are trying to address, presumably as quickly as they can.)
> There 
> 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to