[Rd] R with Java
Hey, I´m a newbie in R and have a big problem. I hope, I´m in the right mailinglist, if not, sorry for this. I want to use R in my Java application and I found out, it should work with JRI. But it doesn´t. I installed it and in the lib-directory of R there is a folder named "JRI". But I have to tell Eclipse that the JRI exist but I don´t know how. I read help-files and so on, but I don´t understand. Could you give me a simple instruction how to do this? Very very thank you. Greets Nadine PS: To my person, I´m living in Bingen am Rhein (Germany) and studiing IT. My diploma project is an implementation of the Transfer-Entropy in Java with the help of R (for calculations and graphics). -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] R with Java [...]
Sorry, I forgot something... I´m using Windows. Greets Nadie -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R with Java
On Sep 21, 2009, at 5:27 , Nadine Bethke wrote: Hey, I´m a newbie in R and have a big problem. I hope, I´m in the right mailinglist, if not, sorry for this. Please use the stats-rosuda-devel mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel You may want to look at the archives, because roughly this question has been asked before. I want to use R in my Java application and I found out, it should work with JRI. But it doesn´t. I installed it and in the lib- directory of R there is a folder named "JRI". But I have to tell Eclipse that the JRI exist but I don´t know how. I read help-files and so on, but I don´t understand. Could you give me a simple instruction how to do this? Not really since I don't use Eclipse, but in general you just have to make sure that the necessary JAR files are on your class path, then you have to make sure Eclipse sets the java library path to the path with the jri.dll and finally PATH must contain the directory of R.dll. (Also since this is a new project, you may consider using the high- level REngine API instead of the low-level JRI API. In addition, unless you have a specific reason for using JRI (R embedding) there are more simple solutions such as Rserve based on the same API - but the choice depends on what exactly your applications is doing) Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze
Just downloaded and installed "R version 2.10.0 Under development (unstable) (2009-09-21 r49771)" and am happy to report that my .Rprofile loads appropriately with no segfaults. Thanks Duncan! Mark Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry Indiana University School of Medicine 15032 Hunter Court, Westfield, IN 46074 (317) 490-5129 Work, & Mobile & VoiceMail (317) 399-1219 Skype No Voicemail please On Fri, Sep 18, 2009 at 2:11 PM, Duncan Murdoch wrote: > I've just committed (r49747) some changes that should fix the re-entrancy > bug Mark reported the other day. The problem was that R reads some files > (e.g. Mark's .Rprofile) in a read-eval-print loop, and only parses them a > few lines at a time. This means that within that loop, one of the evals > could cause it to start parsing something else. One of the changes I put in > a few days ago got confused by this. > > Hopefully the latest change hasn't introduced a new bug... > > BTW, one of the effects of this change is that a syntax error in .Rprofile > should now be reported on the correct line number. In R 2.9.x the line > number was relative to the current statement, so it was pretty meaningless. > > Duncan Murdoch > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] DYLIB_EXT vs. SHLIB_EXT?
The graph Bioconductor package wants to compile its C code to a shared library that is named differently from the package, to avoid conflict with graph.dll and friends from graphviz. So recently we tried after: $(SHLIB) mv $(SHLIB) BioC_graph$(DYLIB_EXT) and useDynLib(BioC_graph) in the NAMESPACE. This fails on Mac. We then shifted to after: $(SHLIB) mv $(SHLIB) BioC_graph$(SHLIB_EXT) which works on all platforms we have available. Have we found a robust solution? Thanks for any guidance, Martin > sessionInfo() R version 2.10.0 Under development (unstable) (2009-09-20 r49768) x86_64-unknown-linux-gnu locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] cannot build R-devel (>= r49747)
Hello, I've tried several times yesterday to build R-devel and I consistently get this error when I "make" : mkdir -p -- ../../../library/base/R make[3]: Leaving directory `/tmp/R-devel/src/library/profile' make[3]: Entering directory `/tmp/R-devel/src/library/base' building package 'base' make[4]: Entering directory `/tmp/R-devel/src/library/base' mkdir -p -- ../../../library/base/demo mkdir -p -- ../../../library/base/po make[4]: Leaving directory `/tmp/R-devel/src/library/base' Error: unprotect_ptr: pointer not found Execution halted make[3]: *** [all] Error 1 make[3]: Leaving directory `/tmp/R-devel/src/library/base' make[2]: *** [R] Error 1 make[2]: Leaving directory `/tmp/R-devel/src/library' make[1]: *** [R] Error 1 make[1]: Leaving directory `/tmp/R-devel/src' make: *** [R] Error 1 I tried this morning to step down and I believe this has been introduced by rev 49747: - r49747 | murdoch | 2009-09-18 14:10:55 -0400 (Fri, 18 Sep 2009) | 1 line Changed paths: M /trunk/src/include/Defn.h M /trunk/src/include/Parse.h M /trunk/src/main/gram.c M /trunk/src/main/gram.y M /trunk/src/main/main.c M /trunk/src/main/memory.c Allow parsing in the middle of a REPL on a file, without messing up the source record for the file. - ... which makes sense since it looks like a parser issue. I can build revision 49746. This is a fedora 11 : $ uname -a Linux santorini 2.6.29.6-217.2.16.fc11.i686.PAE #1 SMP Mon Aug 24 17:16:21 EDT 2009 i686 i686 i386 GNU/Linux I'm not sure what I can do to help fixing this. Can someone else with a fedora replicate this ? Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/yw8E : New R package : sos |- http://tr.im/y8y0 : search the graph gallery from R `- http://tr.im/y8wY : new R package : ant __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel