Skip to contents

Write out all the necessary files to implement the trial design created. Exported files include

Usage

write_trial_files(td, folder_path, ext = "shp", zip = FALSE, zip_name = NA)

Arguments

td

(tibble) a tibble of a trial design created by applying assign_rate() to experimental plots made by make_exp_plots().

folder_path

(character) path to the folder in which the files will be saved

ext

(character) Default = "shp". Extension to use to save the files, "geojson" or any other extension supported by sf::st_write()

zip

(logical) Default = FALSE. If TRUE, all the files that are being written will be zipped.

zip_name

(character) name of the zip file created when zip = TRUE.

Value

nothing

Examples

#--- load trial design ---#
data(td_two_input)

write_trial_files(
  td = td_two_input,
  folder_path = tempdir(),
  zip = FALSE
)
#> Writing the trial design as .shp files. 
#> Writing the trial design as .shp files. 
#> Writing the ab-lines as .shp files. 
#> Writing the ab-lines as .shp files. 
#> Writing the harvester ab-line as .shp file.