export models from R to Scala