Skip to content

Instantly share code, notes, and snippets.

@trcook
Created April 3, 2013 14:21
Show Gist options
  • Save trcook/5301639 to your computer and use it in GitHub Desktop.
Save trcook/5301639 to your computer and use it in GitHub Desktop.
Ruby get R Args
#!/usr/bin/env ruby
require 'rserve'
import rserve
require 'rserve'
include Rserve
c = Connection.new # from here out, all calls to R will occur in the method: "c.eval()"
out_args = c.eval %{
args(dir)
}
print out_args.to_ruby[:head]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment