functions {XRJulia} | R Documentation |
Function Versions of Methods for Julia Interface evaluators.
Description
Function Versions of Methods for Julia Interface evaluators.
Usage
juliaSource(..., evaluator = RJulia())
juliaAddToPath(directory = "julia",
package = utils::packageName(topenv(parent.frame())), pos = NA,
evaluator = RJulia(.makeNew = FALSE), where = topenv(parent.frame()))
juliaUsing(module, evaluator)
juliaImport(..., evaluator)
juliaSend(object, evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaGet(object, evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaPrint(object, ..., evaluator = XRJulia::RJulia())
juliaEval(expr, ..., evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaCommand(expr, ...,
evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaCall(expr, ..., evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaSerialize(object, file, append = FALSE,
evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaUnserialize(file, all = FALSE,
evaluator = XR::getInterface(.JuliaInterfaceClass))
juliaName(object)
juliaImport(..., evaluator)
Arguments
... |
arguments to the corresponding method for an evaluator object. |
evaluator |
The evaluator object to use. By default, and usually, the current evaluator
is used, and one is started if none has been. But see the note under |
directory |
the directory to add, defaults to "julia" |
package , pos |
arguments to the method, usually omitted. |
where |
for the load action, omitted if called from a package source file. Otherwise, must be the environment in which a load action can take place. |
module |
String identifying a Julia module. |
object |
A proxy in R for a Julia object. |
expr |
A string that should be legal when parsed and evaluated in Julia. |
file , append , all |
Arguments to the evalutor's serialize and unserialize methods. See the reference, Chapter 10. |
Functions
-
juliaSource
: evaluate the file of Julia source. -
juliaAddToPath
: adds the directory specified to the search path for Julia modules. If called from the source directory of a package during installation, sets up a load action for that package. If you want to add the path to all evaluators in this session, call the function before creating an evaluator. Otherwise, the action applies only to the specified evaluator or, by default, to the current evaluator. -
juliaUsing
: the "using" form of Julia imports: the module is imported with all exports exposed. -
juliaImport
: adds the module information specified to the modules imported for future Julia evaluator objects.Add the module to the table of imports for Julia evaluators, and import it to the current evaluator if there is one. If called from the source directory of a package during installation, both
juliaImport
andjuliaAddToPath()
set up a load action for that package. The functional versions, not the methods themselves, should be called from package source files to ensure that the load actions are created. Note that calling either function before any evaluator has been generated will install that call as a setup action for all XRJulia evaluators. -
juliaSend
: sends theobject
to Julia, converting it via methods forasServerObject
and returns a proxy for the converted object. -
juliaGet
: converts the proxy object that is its argument to an R object. -
juliaPrint
: Print an object in Julia. Either one object or several arguments as would be given to the Eval() method. -
juliaEval
: evaluates theexpr
string subsituting the arguments. See the corresponding evaluator method for details. -
juliaCommand
: evaluates theexpr
string subsituting the arguments; used for a command that is not an expression. -
juliaCall
: call the function in Julia, with arguments given; expr is the string name of the function -
juliaSerialize
: serialize theobject
in Julia -
juliaUnserialize
: unserialize the file in Julia -
juliaName
: return the name by which this proxy object was assigned in Julia -
juliaImport
: Import a Julia module or add a directory to the Julia Search Path If called from the source directory of a package during installation, bothjuliaImport
andjuliaAddToPath()
also set up a load action for that package. The functional versions, not the methods themselves, should be called from package source files to ensure that the load actions are created.