Skip to contents

Transfer R object into a Python session.

Usage

rxp_r2py(name, expr, nix_env = "default.nix")

Arguments

name

Symbol, name of the derivation.

expr

Symbol, R object to be saved into a Python pickle.

nix_env

Character, path to the Nix environment file, default is "default.nix".

Value

A list with elements: name, the name of the derivation, snippet, the Nix boilerplate code, type, additional_files (for compatibility reasons only) and nix_env.

Details

rxp_r2py(my_obj, my_r_object) saves an R object to a Python pickle using reticulate::py_save_object().

Examples

if (FALSE) { # \dontrun{
  rxp_r2py(my_obj, my_r_object)
} # }