Creates a jlview object and ensures it is released when the scope exits, even if an error occurs. This prevents memory leaks from forgotten releases.
Examples
if (FALSE) { # \dontrun{
JuliaCall::julia_setup()
JuliaCall::julia_command("big = randn(100000)")
result <- with_jlview(JuliaCall::julia_eval("big"), {
c(mean(.x), sd(.x))
})
# .x is automatically released here
} # }