Skip to contents

When Nix builds a derivation, its output is saved in the Nix store located under /nix/store/. Even though you can import the derivations into the current R session using rxp_read() or rxp_load(), it can be useful to copy the outputs to the current working directory. This is especially useful for Quarto documents, where there can be more than one input, as is the case for html output.

Usage

rxp_copy(derivation_name = NULL)

Arguments

derivation_name

The name of the derivation to copy. If empty, then all the derivations are copied.

Value

Nothing, the contents of the Nix store are copied to the current working directory.

See also

Examples

if (FALSE) { # \dontrun{
  # Copy all derivations to the current working directory
  rxp_copy()

  # Copy a specific derivation
  rxp_copy("mtcars")

  # Copy a Quarto document output with multiple files
  rxp_copy("my_quarto_doc")
} # }