julia_assign | R Documentation |
julia_assign
assigns a value to a name in julia with automatic type conversion.
julia_assign(x, value)
x |
a variable name, given as a character string. |
value |
a value to be assigned to x, note that R value will be converted to corresponding julia value automatically. |
if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## julia_setup is quite time consuming
## doing initialization and automatic installation of Julia if necessary
julia_setup(installJulia = TRUE)
julia_assign("x", 2)
julia_assign("rsqrt", sqrt)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.