JuliaObject: Convert an R Object to Julia Object.

View source: R/JuliaObject.R

JuliaObjectR Documentation

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)

Arguments

x

the R object you want to convert to julia object.

Value

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

Examples


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)
}


JuliaCall documentation built on Sept. 8, 2022, 5:10 p.m.