Bring the power of Julia into R through XRJulia package (2)
Introduction to Julia and XRJulia package by example Julia is a high-performance language, it is easy to learn if you are already familiar with R . You can find introduction and many useful links for Julia from https://julialang.org/ . XRJulia is a package for R by John M. Chambers. It enables us to access to all the functionality provided by Julia in R . You can get it from CRAN or the latest version from https://github.com/johnmchambers/XRJulia . The purpose of this article is to give a brief introduction to Julia and XRJulia with some small examples. After installing XRJulia package, let us type the following code into R : library("XRJulia") ev <- RJulia() ev$Eval("1+1") ## 2 ev$Command("a = 1+1") ev$Eval("a") ## 2 The first line is to load the XRJulia library, and the second line is to start a Julia session with the name ev (which is the abbreviation for evaluator). And then you can evaluate some expression using ev$Eval ...