简体   繁体   中英

Error message I do not understand R renjin

I asked for a solution before, but apparently could not be helped as renjin is rather experimental still...but maybe someone could please translate the error message I get into plain English?

Maybe I can then determine if I can reasonable hope to solve this problem in a reasonable time or if I should rather abandon renjin.

Here is the message:

Exception in thread "AWT-EventQueue-0" org.renjin.eval.EvalException: object 'C_hclust'    not found

Here is the code:

private void cluster()  {
    try {
        this.engine.eval("dis<-dist(myMatrix, \"binary\")");
    } catch (ScriptException ex) {System.out.println(1);
        Logger.getLogger(RWorker.class.getName()).log(Level.SEVERE, null, ex);
    }

    try {
        this.engine.eval("clus<-hclust(dis)");
    } catch (ScriptException ex) {System.out.println(3);
        Logger.getLogger(RWorker.class.getName()).log(Level.SEVERE, null, ex);
    }
    try {
        this.engine.eval("plot(clus)");
    } catch (ScriptException ex) {System.out.println(4);
        Logger.getLogger(RWorker.class.getName()).log(Level.SEVERE, null, ex);
    }
}

I did not get any of the prints, however.

C_hclust is a function from the stats package written in C but not yet included in Renjin. We are slowly integrating the C/Fortran code from the GNU R stats package as we test and expand our C/Fortran translator.

We're always looking for contributors so this might be a good mini project if you want to get involved - you can take a stab at copying the relevant sources int packages/stats/src/main/c and see if it compiles with out error.

Otherwise completing the functionality of the stats package is a priority and you can look for it in the near future!

我给他们的邮件列表写了一封信-事实证明,这确实是他们的错误,有望很快得到修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM