Displaying 20 results from an estimated 100 matches similar to: "R-devel Digest, Vol 56, Issue 27"
2006 May 06
1
R et Java
Bonjour,
Je developpe une application java et je veux integrer du code R dans mon programme . Le programme 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
2004 Mar 05
1
Problems with SJava instalation
Hi,
I'm try to use the SJava package. The install is OK. In R I have this error
message:
--------------------------
> library(SJava)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"/opt/lib/R/site-library/SJava/libs/SJava.so":
libRSNativeJava.so: cannot open shared object file: No such file or
directory
Error in
2006 May 06
5
R and Java
Hello
I m tryng to execute the code below and I have a problem 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
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
2002 Aug 14
3
t-test via matrix operations
I need to calculate a large number of t statistics, and would like to do so via matrix operations. So far I have figured out a way to calculate the mean of each row of the matrix:
d <- matrix(runif(100000,1,10), 1000, 10) # some test data
s <- rep(1,ncol(d)) # a sum vector to use for matrix multiplication
means <- (d%*%s)/ncol(d)
This is at least 1 order of magnitude faster than
2003 Sep 24
1
SJava help
Hi,
I installed SJava 0.66-1 on my linux RH 7.2 machine. I am using R-1.7.1.
I set LD_LIBRARY_PATH up then called library(SJava) and it was fine. But
when I called .JavaInit(), I got weird error that states it could not
find java/lang/Hashtable. The session is below and shows my java
configuration. I am using j2sdk1.4.2_01 from Sun.
Thank you very much.
Weiming Zhang
> .javaConfig
2008 Oct 08
1
help for compile sjava
Dear duncan,
I'm writing to ask you for some help about compiling SJava.
I encounter some errors when I compiled SJava on Window XP:
Building JNI header files...
Extracting the classes from Environment.jar
/jdk1.3/bin/jar: not found
RForeignReference
After executing command "sh ./configure.win C:/Program Files/R/R-2.7.2", I
modify the JAVA_HOME in file "$RHOME/
2005 Jul 27
1
unable to source a .R file using RJava
I am unable to source a ".R" file using RJava. I tried a couple of different tests:
1) using java and the evaluation method core dumps
2) using ./RJava --example --gui-none to invoke source core dumps.
3) The line of R works if I go directly thru R and not RJava.
Version info and code are below. Any help would be appreciated.
--Laura O'Brien
Applications
2005 Jul 26
1
Anybody have a binary version of SJava for rw2001 (Windows)?
I am not a techie and have been struggling 2 days solid to try and install
SJava (the source from http://www.omegahat.org/RSJava/). Does anybody have a
binary file for me (I am Windows XP and rw2001)? I have tried installing
Perl, mingwin and the cygwin tools but still no luck. When I try “R CMD
INSTALL c:\SJava_0.78-0.tar.gz” I get the following (and haven’t a clue what
it could mean):
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
2010 Jan 12
1
trouble with installing SJava
Colleagues,
How i can solve this error when i install SJava package
Thanks
----------------
R CMD INSTALL -c /usr/local/lib/R/SJava_0.69-0.tar.gz
* installing to library ?/usr/local/lib/R/site-library?
* installing *source* package ?SJava? ...
checking for java... /usr/lib/jvm/java-6-sun/bin/java
Java VM /usr/lib/jvm/java-6-sun/bin/java
checking for javah... /usr/lib/jvm/java-6-sun/bin/javah
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)
2002 Oct 24
1
Rjava failing to initialize in Windows 2000
Dear Any,
I am trying to initialise Rjava with the objective of running ORCA within R.
I am running R1.5.1 on Windows2000 and get the same problem with Sun
Java run time jre-1.2.2_013
Java j2re-1.4.1_01
Microsoft Java Virtual Machine Build 3805
.JavaInit() is failing at :
.C("s_start_VM", as.character(classPath), as.character(classPath),
2003 Oct 23
0
Problem w/ SJava package
Hello,
Seems like it is almost working properly. I was able to run examples calling
R from Java successfully for the java code below. However, some commands,
such as "objects" when not commented out, give me the following error? If
you could point me to the correct place to find a solution, I would much
appreciate it. I am new to the R community and not sure where is the
appropriate
2007 May 19
0
SJava installation
Hi.
I have downloaded SJava from http://www.omegahat.org/RSJava/ as well as all
of the tools required. I have done exactly what is said on that page as well
as http://www.murdoch-sutherland.com/Rtools/Rtools.txt.
When I type: make pkg-SJava
It seems like it IS installing but then i get the following error:
...
extracted: org/omegahat/Environment/Help/Interpreter.html
extracted:
2002 Apr 25
1
An unexpected exception has been detected in native code outside the VM
Dear all:
I have a problem with calling R from Java,
It was ok at the first time,but the error message "An unexpected exception has been detected in native code outside the VM. "
will appear. What is the issue of "native code"?
Could somebody help me ?
Thanks,
ken
This is the log I obtained:
executing: source('/export/home/users/ruser/java/Rmain.R')
Loading
2002 Jan 19
0
Troubles in SJava
OS : Win95
R Version : 1.4.0
JDK Version : 1.3.0
Hi, R-statisticians all over the world.
I'm trying to handling R objects in the Java code as follows:
[c:\myjava\R2JTest.java]
import org.omegahat.R.Java.*;
class R2JTest {
public static void main(String args[]) {
REvaluator e = new REvaluator();
Object val = e.eval("objects()");
int i;
2005 Jul 15
3
Java
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5.
I assume I have to get the jdk from jpackage, but I'm having trouble
locating it, let alone finding any instructions on how to upgrade. Much
appreciated if anyone can help. Thanks!
2005 Jul 20
2
unable to call R t-test from Java
Hello,
My colleague and I would like to write Java code that invokes R to do a simple TTest. I've included my sample java code below. I tried various alternatives and am unable to pass a vector to the TTest method. In my investigation, I tried to call other R methods that take vectors and also ran into various degrees of failure. Any insight you can provide or other Web references you
2002 Aug 30
1
Can neither find or create RInterpreter.DLL
Hi,
I am doing my first steps with R. This worked so far:
- Installed R1.5.1 from binary distribution
- Installed SJava 0.62.8 from binary distribution
- Executed Java statements within R
Problem:
If I call R from Java, I get an UnsatisfiedLinkError:
RInterpreter.DLL not found. This DLL is completely
missing, I searched all drives for it.
In "Calling R from Java" I found a hint: