Skip to contents

A convenience over file.copy(system.file("python", "styles", "default.yaml", package = "quartifyr"), ...) that also returns the copy's parsed content as an R list, ready to edit in place and hand to styling_save_overrides().

Usage

styling_example_style(
  dir = ".",
  file = "style.yaml",
  overwrite = FALSE,
  base = system.file("python", "styles", "default.yaml", package = "quartifyr")
)

Arguments

dir

Destination directory. Created if it doesn't exist.

file

Destination filename within dir.

overwrite

Replace the destination if it already exists.

base

Style YAML to copy. Defaults to the package's own bundled default.yaml; only worth overriding to start from an existing org style YAML instead.

Value

The copied style YAML, parsed into a nested list.

Examples

if (FALSE) { # \dontrun{
# Requires a provisioned quartifyr Python environment (see
# initialize_quartifyr_project()).
style <- styling_example_style("path/to/project", file = "style.yaml")
style$page$margins_in$top <- 1.25
} # }