# NOT RUN {
if (juliaSetupOk()) {
# Transfer a large vector to Julia and use it in multiple calls
x <- juliaPut(rnorm(100))
# x is just a reference to a Julia vector now
juliaEval("using Statistics")
juliaCall("mean", x)
juliaCall("var", x)
}
# }
Run the code above in your browser using DataLab