juliaEval | R Documentation |
This function evaluates Julia code, given as a string, in Julia, and translates the result back to R.
juliaEval(expr)
expr |
Julia code, given as a one-element character vector |
If the code needs to use R variables, consider using juliaLet
instead.
The value returned from Julia, translated to an R data structure.
If Julia returns nothing
, an invisible NULL
is returned.
This is also the case if the last non-whitespace character of expr
is a semicolon.
if (juliaSetupOk()) {
juliaEval("1 + 2")
juliaEval('using Random; Random.seed!(5);')
## Not run:
juliaEval('using Pkg; Pkg.add("BoltzmannMachines")')
## End(Not run)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.