R to Java interface