1

I want to connect R to postgresql through Renjin for which I am using

engine.eval("library(RPostgreSQL)");

getting folllowing error

org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is org.renjin.eval.EvalException: Could not load package RPostgreSQL; 
tried org.renjin.bioconductor:RPostgreSQL, org.renjin.cran:RPostgreSQL
Raaj
  • 31
  • 5

1 Answers1

0

If you're embedding Renjin within a Java application or servlet, you'll need to make sure that RPostgreSQL is on the classpath, just like any other JAR.

You can find the maven coordinates of the RPostgreSQL library here:

http://packages.renjin.org/package/org.renjin.cran/RPostgreSQL

akbertram
  • 1,330
  • 10
  • 16