juliaExpr | R Documentation |
A given R character vector is marked as a Julia expression.
It will be executed and evaluated when passed to Julia.
This allows to pass a Julia object that is defined by complex Julia syntax
as an argument without needing the round-trip to R via juliaEval
or juliaLet
.
juliaExpr(expr)
expr |
a character vector which should contain one string |
if (juliaSetupOk()) {
# Create complicated objects like version strings in Julia, and compare them
v1 <- juliaExpr('v"1.0.1"')
v2 <- juliaExpr('v"1.2.0"')
juliaCall("<", v1, v2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.