rjava

Problem loading R own created libraries in Java/JRI code

I created my own new R library (called "Media"). There is no problem when I try to load it with RGui, and I can call the functions defined in the new package. This is how I load it: > library(Media) But, I'm also trying to call that functions from Java/JRI code, and when I load the new R package, Java doesn't seem to find the paca...

R: rJava package install failing

When installing rJava using the install.packages("rJava") command I get the following error: checking Java support in R... present: interpreter : '/usr/bin/java' archiver : '/usr/bin/jar' compiler : '/usr/bin/javac' header prep.: '/usr/bin/javah' cpp flags : '-I/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../include -I/usr/lib/jvm/java-...

How to include jar file when creating a R package?

I created a skeleton R package: lib jarFileHere.jar R r_code_file.R The r_code_file.R tries to references a class file in jarFileHere.jar: library("rJava") library("rjson") .onLoad <- function(libname, pkgname) { .jpackage(pkgname, lib.loc=libname) } .onLoad("packagename", "../lib/jarFileHere.jar") .jnew("com/test/ClassHere",...

calling plots from R into Java application

Hi guys I want to ask, if there is anybody who is succesfully working with JRI and rJava? I want to put some graphs, plots made in R into my Java application, but without success. Can anybody provide working example. Here is what I found, but its not working. Thank you import org.rosuda.JRI.REXP; import org.rosuda.JRI.Rengine; /** * @a...