## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(FielDHub)

## ----recorded-result----------------------------------------------------------
x <- latin_rectangle(5, rows = 3, seed = 27)
x$metadata[c("design", "schema_version", "seed", "package_version")]
stopifnot(identical(reproduce_design(x), x))

## ----formats------------------------------------------------------------------
design_formats()
file <- tempfile(fileext = ".rds")
write_design(x, file)
stopifnot(identical(read_design(file), x))
unlink(file)

