search for: romegahatinterpreter

Displaying 19 results from an estimated 19 matches for "romegahatinterpreter".

2005 Jul 20
2
unable to call R t-test from Java
...s of failure. Any insight you can provide or other Web references you can point me to would be appreciated. Thank you, Laura O'Brien Application Architect --------------------------- code ------------------------------ package org.omegahat.R.Java.Examples; import org.omegahat.R.Java.ROmegahatInterpreter; import org.omegahat.R.Java.REvaluator; public class JavaRCall2 { /** * want to see if I can eval a t.test command like what I would run in the * R command line */ static public void runTTestByEval_cores(REvaluator e, ROmegahatInterpreter interp) { /* produces...
2006 May 06
1
R et Java
...amme de test que j’ai fait est : import org.omegahat.R.Java.*; public class REvalSample { public static void main(String [] args) { String [] rargs = {"--slave", "--vanilla"}; System.out.println("Sample program to call R engine from Java"); ROmegahatInterpreter interp = new ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(rargs),false); REvaluator e = new REvaluator(); Object val = e.eval("demo()"); val = e.eval("x * 2.0"); if (val != null) { double[] objects = (double[])val;...
2004 Jun 08
3
SJAVA error
...d REmbed.c because in Windows i'm not able to recompile!!! --example package org.omegahat.R.Java; public class REvalSample { public static void main(String[] args) { String[] rargs = { "--slave", "--vanilla" }; System.out.println("Java??R???????????"); ROmegahatInterpreter interp = new ROmegahatInterpreter( ROmegahatInterpreter.fixArgs(rargs), false); REvaluator e = new REvaluator(); Object val = e.eval("x <- sin(seq(0, 2*pi, length=30))"); val = e.eval("x * 2.0"); if (val != null) { double[] objects = (double[]) val;...
2002 Sep 03
2
Problem with SJava sample "JavaRCall"
Hi, I am trying to run the example "JavaRCall" with SJava 0.65 and R1.5.1 under Windows NT4.0. Although loadLibrary("RInterpreter") worked successfull, the following error occurs: "Exception breakpoint occurred at line 65 of ROmegahatInterpreter.java. java.lang.UnsatisfiedLinkError: boolean org.omegahat.R.Java.ROmegahatInterpreter.initR(java.lang.String[]) boolean org.omegahat.R.Java.ROmegahatInterpreter.initR(java.lang.String[]) native code" All paths (attached) are set up correctly, what is missing? Thank you, Heinz Grimm My...
2004 Jun 13
0
SJava Help
Environment: R - 1.9.0 SJava - 0.67 Windows 2000 I can get SJava to work just fine in R but I am having trouble getting R to work in Java. I have created a test class that looks like this: import org.omegahat.R.Java.*; public class Test { public static void main(String[] args) { ROmegahatInterpreter interp = new ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(args), flase); } } The class compiles fine but when I run it I get the following output: Loading RInterpeter library R_HOME: R_HOME=C:/Program Files/R/rw1090 RVersion: R_VERSION=1.6.1 Then I get a windows popup error saying: Fat...
2007 Oct 28
1
R-devel Digest, Vol 56, Issue 27
...r library Exception in thread "main" java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at org.omegahat.R.Java.ROmegahatInterpreter.(ROmegahatInterpreter.java:28) at org.omegahat.R.Java.Examples.lmTest.main(lmTest.java:8) and Exception in thread "main" java.lang.UnsatisfiedLinkError: no SJava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.jav...
2010 Feb 08
2
Error on start R in server
Hello all, (Thank for your reply) I have a web-application in Apache Tomcat, when i start R in this application, I used packe RSJava Code ROmegahatInterpreter interp; String [] rargs = {"--no-save"}; REvaluator e; interp = new ROmegahatInterpreter ( ROmegahatInterpreter.fixArgs(rargs),false ); e =new REvaluator (); Errors ================ R version 2.10.1 (2009-12-14) Copyright (C) 2009 The R Foundation for Statistical Computing I...
2006 May 06
5
R and Java
...oblem with the R-Java connection.: import org.omegahat.R.Java.*; public class REvalSample { public static void main(String [] args) { String [] rargs = {"--slave", "--vanilla"}; System.out.println("Sample program to call R engine from Java"); ROmegahatInterpreter interp = new ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(rargs),false); REvaluator e = new REvaluator(); Object val = e.eval("demo()"); val = e.eval("x * 2.0"); if (val != null) { double[] objects = (double[])val; for...
2005 Jul 27
1
unable to source a .R file using RJava
...db.name="csbdev", user.name="noone", passwd="pass"){ R <- 2 R } .java code to invoke the evaluate method ----------------------------------------- package com.icoria.rwrapper; import org.omegahat.R.Java.ROmegahatInterpreter; import org.omegahat.R.Java.REvaluator; public class JavaRCall3 { /** * want to see if I can eval a t.test command like what I would run in the * R command line */ static public void run_sourceRFile(REvaluator e, ROmegahatInterpreter interp) { /* produces a co...
2004 Mar 05
1
Problems with SJava instalation
...t;main" java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at org.omegahat.R.Java.ROmegahatInterpreter.<clinit>(ROmegahatInterpreter.java:34) at org.omegahat.R.Java.Examples.JavaRCall.main(JavaRCall.java:11) --------------------------- I'm using GNU/Debian stable/testing with j2sdk 1.4: --------------------------- ii j2sdk1.4 1.4.1-6 Blackdown Java(TM) 2 SDK, Standa...
2003 Oct 23
0
Problem w/ SJava package
...---------------------------------------------- ------------------------------------------------------------------ Code follows ---------------------------------------------------------------------------- ------------------------------------------------------------------ import org.omegahat.R.Java.ROmegahatInterpreter; import org.omegahat.R.Java.REvaluator; public class SJ{ public SJ(String[] args){ ROmegahatInterpreter interp = new ROmegahatInterpreter( ROmegahatInterpreter.fixArgs(args),false); REvaluator e=new REvaluator(); System.out.println("done w/ evaluator constructor"); // St...
2004 Apr 23
0
SJava embedded in R
Hi, Here's some suggestions for troubleshooting the install. The CLASSPATH needs to be $SJAVA_HOME/org/omegahat/Jars/Environment.jar, $SJAVA_HOME/org/omegahat/Jars/antlr.jar $SJAVA_HOME/org/omegahat/Jars/jas.jar $SJAVA_HOME. This allows the java compiler/interpreter to find 1)the ROmegahatInterpreter and REvaluator classes(in a org/omegahat/R/Java tree under SJava 2)& the base omegahat interpreter libraries from which the ROmegahatInterpreter & REvaluator classes descend.(Found in those jar files) on Unix-like systems, the LD_LIBRARY_PATH has to point to the shared objects(so)/d...
2002 Apr 25
1
An unexpected exception has been detected in native code outside the VM
...e `q()' to quit R. An unexpected exception has been detected in native code outside the VM. <=====ERROR MESSAGE==== Unexpected Signal : 11 occurred at PC=0xf27e2440 Function name=do_dump Library=/usr/local/lib/R/bin/libR.so Current Java thread: at org.omegahat.R.Java.ROmegahatInterpreter.initR(Native Method) at org.omegahat.R.Java.ROmegahatInterpreter.<init>(ROmegahatInterpreter.java:65) at com.tynesys.common.cpc01Action.perform(cpc01Action.java:231) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787) at org.apache.struts.action.ActionS...
2002 Aug 15
0
SJava, another UnsatisfiedLinkError
...at org.omegahat.R.Java.REvaluator.eval(Native Method) at org.omegahat.R.Java.REvaluator.eval(REvaluator.java:86) at org.omegahat.R.Java.REvaluator.eval(REvaluator.java:36) at test.main(test.java:9) Note: I have tried test.java with the REvaluator's call function, ROmegahatInterpreter's constructor function. They all gave me the same message: UnsatisfiedLinkError: call UnsatisfiedLinkError: initR I suspect the native functions in R is not working correctly from Java. Can anyone give me some hint? Thanks for your time. Pauline -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2007 May 19
0
SJava installation
...installing but then i get the following error: ... extracted: org/omegahat/Environment/Help/Interpreter.html extracted: org/omegahat/Environment/Help/FindingFiles.html extracted: org/omegahat/Environment/Help/Functions.html extracted: org/omegahat/Environment/Help/API.html RForeignReference ROmegahatInterpreter REvaluator RManualFunctionActionListener adding build stamp to DESCRIPTION running src/Makefile.win ... (cd .. ; ./configure.win C:/PROGRA~1/R/R-25~1.0) ./configure.win: not found make[3]: *** [config] Error 127 make[2]: *** [srcDynlib] Error 2 make[1]: *** [all] Error 2 make: *** [pkg-SJ...
2010 Jan 12
1
trouble with installing SJava
...clared (first use in this function) CtoJava.cweb:256: error: (Each undeclared identifier is reported only once CtoJava.cweb:256: error: for each function it appears in.) make: *** [CtoJava.o] Error 1 Generating JNI header files from Java classes. RForeignReference, RManualFunctionActionListener, ROmegahatInterpreter & REvaluator ************* Warning: At present, to use the library you must set the LD_LIBRARY_PATH environment variable to /usr/local/lib/R/site-library/SJava/libs:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386:/usr/lib/jvm...
2004 May 17
1
Problem with package SJava
Hello all, I'm trying to run SJava package (0.65 modified downloaded from : http://stats.math.uni-augsburg.de/iPlots/alpha/) on windows NT 2000 and R 1.8.01. I have also downloaded the PDF Calling R from Java and when I want to execute the following code: import org.omegahat.R.Java.*; import java.io.*; public class Essai{ public static void main (String [] args) { REvaluator e = new
2005 Jul 20
0
Question about Installing SJava package
...CtoJava.cweb:215: error: static declaration of 'std_env' follows non-static declaration CtoJava.cweb:195: error: previous declaration of 'std_env' was here make: *** [CtoJava.o] Error 1 Generating JNI header files from Java classes. RForeignReference, RManualFunctionActionListener, ROmegahatInterpreter & REvaluator ************* Warning: At present, to use the library you must set the LD_LIBRARY_PATH environment variable to /usr/local/lib/R/library/SJava/libs:/usr/java/jdk1.5.0_04/jre/lib/i386/client:/usr/java/jdk1.5.0_04/jre/lib/i386:/usr/java/jdk1.5.0_04/jre/../lib/i386: or use one of the R...
2003 Sep 24
1
SJava help
...ces.h" ; then cp CtoJava.h ErrorHandling.h JNIUtils.h ManagerInterfaceUtils.h References.h /tmp/R.INSTALL.30363/SJava/inst/include ; fi mv libRSNativeJava.so /tmp/R.INSTALL.30363/SJava/inst/libs Generating JNI header files from Java classes. RForeignReference, RManualFunctionActionListener, ROmegahatInterpreter & REvaluator ************* Warning: At present, to use the library you must set the LD_LIBRARY_PATH environment variable to /usr/lib/R/library/SJava/libs:/opt/lang/java/j2sdk1.4.2_01/jre/lib/i386/client:/opt/lang/java/j2sdk1.4.2_01/jre/lib/i386:/opt/lang/java/j2sdk1.4.2_01/jr...