Learn R Programming

JuliaConnectoR (version 1.1.4)

juliaGet: Translate a Julia proxy object to an R object

Description

R objects of class JuliaProxy are references to Julia objects in the Julia session. These R objects are also called "proxy objects". With this function it is possible to translate these objects into R objects.

Usage

juliaGet(x)

Arguments

x

a reference to a Julia object

Details

If the corresponding Julia objects do not contain external references, translated objects can also saved in R and safely be restored in Julia.

Modifying objects is possible and changes in R will be translated back to Julia.

The following table shows the translation of Julia objects into R objects.

JuliaR
struct\(\rightarrow\)list with the named struct elements
Array of struct type\(\rightarrow\)list (of lists)
Tuple\(\rightarrow\)list
NamedTuple\(\rightarrow\)list with the named elements
AbstractDict\(\rightarrow\)list with two sub-lists: "keys" and "values"
AbstractSet\(\rightarrow\)list