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)
julia_do.call("sqrt", list(2))
julia_call("sqrt", 2)
julia_call("sqrt.", 1:10)
}
Run the code above in your browser using DataLab