Skip to content
Advertisement

Renjin can’t load pckages

I’m a newbie with Renjin. I’m trying to use Renjin in a Java application. I’m trying to develop the example showed here.

I’m compiling with gradle, as recommended in the renjin’s web page.

So, with gradle build all is ok when I run gradle build.

JavaScript

But, when I want run the application with gradle run I get this.

JavaScript

I’ve tried with different packages, with the same result. I searched the packages in the site http://packages.renjin.org/ and the packages exists, so I think isn’t about availability.

Anyone had the same problem? And solved it?

Thanks in advance.

Advertisement

Answer

You need to add the a4base package to your project.

With gradle, you can add the line:

JavaScript

And Gradle will download the JAR and make it available to your application.

You can read more about using R packages with Java applications here:

http://docs.renjin.org/en/latest/library/using-packages.html

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement