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 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 (int i=0; i<objects.length; i++) { System.err.println("("+i+") " + objects[i]);} } } } The ERROR MESSAGES are ""Loading RInterpreter library java.lang.UnsatisfiedLinkError: no RInterpreter in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at org.omegahat.R.Java.ROmegahatInterpreter.<clinit>(ROmegahatInterpreter.java:34) at rjava.REvalSample.main(REvalSample.java:11) Exception in thread "main"."" also , I have problem in installing SJava package. In installing it from RGui i have the error message: ""Erreur dans gzfile(file, "r") : impossible d'ouvrir la connexion De plus : Warning messages: 1: erreur -1 lors de l'extraction d'un fichier zip 2: impossible d'ouvrir le fichier compressé 'SJava/DESCRIPTION' "" [[alternative HTML version deleted]]
Dear R People: Where are the rJava and SJava packages, please? I looked for them to download but they are nowhere to be found. Do they have their own list serves, please? R Windows 2.3. Thanks in advance! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
On Tue, 9 May 2006, Erin Hodgess wrote:> Dear R People: > > Where are the rJava and SJava packages, please? > > I looked for them to download but they are nowhere to be found.rJava is on CRAN: http://cran.r-project.org/bin/windows/contrib/2.3/rJava_0.4-1.zip (The capitalization can cause this to sort in unexpected ways, so you can miss it in a list.)> Do they have their own list serves, please?SJava is part of Omegahat, at http://www.omegahat.org/RSJava/ I think that there is no Windows binary currently available: if there were, it would be at http://www.omegahat.org/R/bin/windows/contrib/2.3/ and accessible by choosing Omegahat as a repository from the Packages | Select Repositories menu. rJava was a page at http://stats.math.uni-augsburg.de/rJava/> R Windows 2.3. > > > Thanks in advance! > > > Sincerely, > Erin Hodgess > Associate Professor > Department of Computer and Mathematical Sciences > University of Houston - Downtown > mailto: hodgess at gator.uhd.edu > > ___________-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Brian D Ripley wrote:> On Tue, 9 May 2006, Erin Hodgess wrote: > > >>Dear R People: >> >>Where are the rJava and SJava packages, please? >> >>I looked for them to download but they are nowhere to be found. > > > rJava is on CRAN: > > http://cran.r-project.org/bin/windows/contrib/2.3/rJava_0.4-1.zipand will change to http://cran.r-project.org/bin/windows/contrib/2.3/rJava_0.4-2.zip due to an update within 12 hours ... Uwe Ligges> (The capitalization can cause this to sort in unexpected ways, so you can > miss it in a list.) > > >>Do they have their own list serves, please? > > > SJava is part of Omegahat, at > > http://www.omegahat.org/RSJava/ > > I think that there is no Windows binary currently available: if there > were, it would be at http://www.omegahat.org/R/bin/windows/contrib/2.3/ > and accessible by choosing Omegahat as a repository from the Packages | > Select Repositories menu. > > rJava was a page at http://stats.math.uni-augsburg.de/rJava/ > > >>R Windows 2.3. >> >> >>Thanks in advance! >> >> >>Sincerely, >>Erin Hodgess >>Associate Professor >>Department of Computer and Mathematical Sciences >>University of Houston - Downtown >>mailto: hodgess at gator.uhd.edu >> >>___________ > >
hello, I want to call R from java. I know that i must install SJava .so ,what tools i need and how i install hwo help me ? [[alternative HTML version deleted]]
You keep on asking questions on this topic lacking basic information. Please consult the posting guide: 1) Do not send HTML mail. 2) Do tell us your OS and platform. 3) Do ask the maintainer about contributed packages. There are alternatives to SJava, for example Rserve and JRI at http://www.rosuda.org/software/ (and see the R FAQ). On Wed, 10 May 2006, miniar mansouri wrote:> hello, > I want to call R from java. I know that i must install SJava .so ,what tools i need and how i install > > hwo help me ? > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595