In [1]:
library(JuliaCall)
In [2]:
julia_setup()
Julia version 1.0.0 at location /Applications/Julia-1.0.app/Contents/Resources/julia/bin will be used.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
In [3]:
julia_console()
It seems that you are not in the terminal. A simple julia console will be started.
Type exit and then enter to exit.
julia> sqrt(2)
1.4142135623730951
julia> exit
Exiting julia console.
In [4]:
julia_library("Plots")
In [5]:
julia_command("gr()")
Plots.GRBackend()
In [6]:
julia_command("Plots.plot(Plots.fakedata(50,5),w=3)")
0 10 20 30 40 50 -5.0 -2.5 0.0 2.5 5.0 y1 y2 y3 y4 y5
In [ ]: