For the original notebook, please go to https://nbviewer.jupyter.org/github/Non-Contradiction/JuliaCall/blob/master/example/JuliaCall_in_Jupyter_R_Notebook.ipynb.
Here I generate a markdown file from part of the notebook and include it in this vignette.
library(JuliaCall)
julia_setup()
Julia at location /Applications/Julia-0.6.app/Contents/Resources/julia/bin will be used.
Julia version 0.6.0 found.
Julia initiation...
Finish Julia initiation.
Loading setup script for JuliaCall...
Finish loading setup script for JuliaCall.
julia_console()
It seems that you are not in the terminal. A simple julia console will be started.
Press ESC or CTRL+C to exit.
julia> sqrt(2)
1.4142135623730951
julia> @doc sqrt
sqrt(x)
Return ${x}$. Throws DomainError
for negative Real
arguments. Use complex negative arguments instead. The prefix operator √
is equivalent to sqrt
.
julia> exit
Exiting julia console.
julia_library("Gadfly")
julia_command("Gadfly.plot(y = [1 2 3])")
julia_library("Plots")
julia_command("gr()")
Plots.GRBackend()
julia_command("Plots.plot(Plots.fakedata(50,5),w=3)")