> install.packages("Rserve")
$ R CMD RServe
When you use rvm for ruby version management, RServe can't be found with the above command line. In that case, execute the following command, and specify the path to RServe.
$ sudo find / -name Rserve $ R CMD <RServe Path>
(Example)
$ R CMD ~/R/x86_64-pc-linux-gnu-library/3.2/Rserve/libs/Rserve
gem 'rserve-client', require:'rserve'
$ bundle install
c = Rserve::Connection.new ... c.assign("root", Rails.root.to_s) ... c.eval <<-EOF x = rnorm(100,0,1) png(paste(root, "/app/assets/images/test.png", sep="")) hist(x) dev.off() EOF
S.Yatsuzuka