julia_command | R Documentation |
julia_command
evaluates string commands in julia
without returning the result back to R.
However, it may evoke julia display system,
see the documentation of the argument 'show_value' for more details.
If you need to get the evaluation result in R, you can use
julia_eval
.
julia_command(cmd, show_value = !endsWith(trimws(cmd, "right"), ";"))
cmd |
the command string you want to evaluate in julia. |
show_value |
whether to display julia returning value or not, the default value is 'FALSE' if the 'cmd' ends with semicolon and 'TRUE' otherwise. |
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_command("a = sqrt(2);") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.