Created
          April 3, 2013 14:21 
        
      - 
      
 - 
        
Save trcook/5301639 to your computer and use it in GitHub Desktop.  
    Ruby get R Args
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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