Skip to contents

This function is designed to export the design made using edibble to an external xlsx file.

Usage

export_design(
  .data,
  file,
  author = NULL,
  date = Sys.Date(),
  overwrite = FALSE,
  hide_treatments = FALSE,
  theme = NULL,
  subject = NULL,
  category = NULL,
  table_style = "TableStyleMedium9"
)

Arguments

.data

An edibble table to export.

file

File, including the path, to export the data to.

author

(Optional) name of the author in character. A vector of character is supported for where there are multiple authors.

date

The date to be inserted in header (defaults to today).

overwrite

A logical value indicating whether to overwrite existing file or not.

hide_treatments

A logical value indicating whether treatments should be included in the data entry sheet. Default is true.

theme

The Excel theme to use (optional). One of "Atlas", "Badge", "Berlin", "Celestial", "Crop", "Depth", "Droplet", "Facet", "Feathered", "Gallery", "Headlines", "Integral", "Ion", "Ion Boardroom", "Madison", "Main Event", "Mesh", "Office Theme", "Old Office Theme", "Organic", "Parallax", "Parcel", "Retrospect", "Savon", "Slice", "Vapor Trail", "View", "Wisp", "Wood Type".

subject

The subject of the workbook (optional).

category

The category of the workbook (optional).

table_style

The table style to apply to the exported data (default: "TableStyleMedium9").

Value

The input data object.

See also

Other user-facing functions: allot_trts(), allot_units(), design(), expect_rcrds(), serve_table(), set_rcrds(), set_trts(), set_units()