export R objects to Scala