Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Tyler Benster
RuntimeError: can't modify frozen string [ reply ]  
2011-01-23 21:17
When running the simple example program I get "RuntimeError: can't modify frozen string" on the second plot, first plot works fine.

require 'rsruby'
r = RSRuby.instance
data = r.rnorm(100)
r.plot(data)
sleep(2)
r.plot({'x' => data,
'y' => data,
'xlab' => 'test',
'ylab' => 'test'})
sleep(2)

Anyone know why the RuntimeError is thrown? Thanks