R integration through JRI