JuliaCall (version 0.17.5)

JuliaObject: Convert an R Object to Julia Object.

Description

JuliaObject converts an R object to julia object and returns a reference of the corresponding julia object.

Usage

JuliaObject(x)

Value

an environment of class JuliaObject, which contains an id corresponding to the actual julia object.

Arguments

x

the R object you want to convert to julia object.

Examples

Run this code

if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## julia_setup is quite time consuming
  ## doing initialization and automatic installation of Julia if necessary
  julia_setup(installJulia = TRUE)
  a <- JuliaObject(1)
}

Run the code above in your browser using DataLab