if (juliaSetupOk()) {
   # Intended use: Create a complex Julia object
   # using Julia syntax and data from the R workspace
   juliaLet('[1 => x, 17 => y]', x = rnorm(1), y = rnorm(2))
   # Assign a global variable
   # (although not recommended for a functional style)
   juliaLet("global x = xval", xval = rnorm(10))
   juliaEval("x")
}
# \dontshow{
JuliaConnectoR:::stopJulia()
# }
Run the code above in your browser using DataLab