Skip to content

Commit

Permalink
added require and sample example
Browse files Browse the repository at this point in the history
  • Loading branch information
crapooze committed Aug 31, 2011
1 parent 2b40660 commit 8ec94fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/em-rserve.rb
Expand Up @@ -2,6 +2,7 @@
require "em-rserve/version"
require "em-rserve/connection"
require "em-rserve/r/r_to_ruby/translator"
require "em-rserve/r/ruby_to_r/translator"

module EM
module Rserve
Expand Down
7 changes: 7 additions & 0 deletions samples/assign.rb
Expand Up @@ -155,6 +155,13 @@ def do_table_for_ints
def ready
puts "ready"

root = EM::Rserve::R::RubytoR::Translator.ruby_to_r ['hello', 'world']
assign_and_debug_node :lol, root

root = EM::Rserve::R::RubytoR::Translator.ruby_to_r [400, 30, 12]
assign_and_debug_node :lol, root


loop_parse_r_val 'c(1:5)'
loop_parse_r_val 'table(c(1,2,3,2,2))'
loop_parse_r_val "data.frame(foo=c(1:8), bar=seq(100,800,100))"
Expand Down

0 comments on commit 8ec94fb

Please sign in to comment.