Does this R session own the Julia object behind a handle?
Source:R/julia_handles.R
julia_handle_owned.RdReturns FALSE for a handle that arrived by saving and reloading,
whose Julia object belongs to the session that created it. It also
returns FALSE for a handle created before julia_ready() last set
Julia up, whose object went with the old Julia server. Callers use this
to tell the user the object came from disk or an earlier session.
Arguments
- x
A handle from
julia_handle().- state_env
The environment given to
julia_ready().
Examples
if (FALSE) { # \dontrun{
if (!julia_handle_owned(fit$julia, .my_pkg_env)) {
stop("This fit was loaded from disk; refit it to continue.")
}
} # }