Added Scala support to engines.R

Given the clean knitr interface, adding Scala to engine.R was quite easy. Testing was done via the `knitr-polyglot.Rmd` file, where a similar operation was done in R, Scala, Python, and Bash. Extracting the Scala part of this would sufficiently serve as a Scala example for the knitr-examples repository, if so desired.