R and Java integration