Integration of R, Java, and Scala