Skip to contents

This function removes a variable or object from the Julia Main module using JuliaCall. It is useful for cleaning up or resetting objects defined in the Julia environment from R.

Usage

delete_julia_obj(obj_name)

Arguments

obj_name

A character string specifying the name of the Julia object to be deleted. This should correspond to a variable or symbol previously defined in the Julia Main module.

Examples

if (FALSE) { # \dontrun{
JuliaCall::julia_command("x = 10")  # Define a Julia variable
delete_julia_obj("x")               # Delete it
} # }