you should check out rsruby first. This is a very low-tech way to run R. It does have the advantage of being able to run R code essentially unchanged.
John Prince
gem "simpler", "~> 0.0.2"