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.
juliaGet(x)
a reference to a Julia object
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.
Julia | R | |
struct |
\(\rightarrow\) | list with the named struct elements |
Array of struct type |
\(\rightarrow\) | list (of list s) |
Tuple |
\(\rightarrow\) | list |
NamedTuple |
\(\rightarrow\) | list with the named elements |
AbstractDict |
\(\rightarrow\) | list with two sub-lists: "keys " and "values " |
AbstractSet |
\(\rightarrow\) | list |