Added Scala support to engine.R
Added Scala support to engines.R.