Export a prescription map in many formats at once
Source:R/export_prescription.R
export_prescription_all.RdConvenience wrapper around export_prescription that
writes several formats side-by-side into the same output directory.
Arguments
- x
Input map (
sfor raster, seeexport_prescription).- output_dir
Directory where the files are written (created if missing).
- basename
File name stem (without extension); defaults to
"prescription".- formats
Character vector. Any subset of
c("shp", "geojson", "kml", "gpkg", "johndeere", "trimble", "isoxml"). Default: all seven.- dose_field, area_min, isoxml_opts
Passed through to
export_prescription.
Examples
if (FALSE) { # \dontrun{
farm <- NFert::farm_balance(
system.file("extdata/example_farm.geojson", package = "NFert"))
export_prescription_all(farm, "rx_maps", "farm_2026",
formats = c("shp", "geojson", "isoxml", "johndeere"))
} # }