Description Usage Arguments Value Author(s)
These functions allow the R user to direct the embedded Ruby interpreter to perform useful operations. These include loading/requiring a Ruby file, creating an instance of a Ruby class, invoking a Ruby method, evaluating a Ruby command given as a string and retrieving a global variable in the Ruby interpreter.
1 2 3 4 5 |
obj |
the reference to the Ruby object (of class RubyObject or RubyRef) whose method is to be invoked. |
method |
a character string giving the name of the method to invoke |
... |
arguments to the method call |
.args |
a single list containing the arguments for the method call. This can be a more convenient way to pass the arguments programmatically. |
converter |
a value controlling how the resulting Ruby value is converted to R. This can be a logical value indicating whether to convert or leave as a reference. In the future, it can also be an R function or a NativeSymbolInfo object that is used to perform the conversion. |
cmd |
a character string whose content is a Ruby command/expression that will be evaluated by the Ruby interpreter. |
var |
a character string giving the name of the Ruby global variable to be retrieved. |
class |
either a character string giving the name of the Ruby class or the
the a |
file |
a character string giving the name of the Ruby source file to be loaded.
This will be passed to |
These functions typically return an arbitrary Ruby object which is typically converted to an R object.
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.