This writes a ED2IN file from an ed2in list. Default method writes a barebones file without comments. S3 method for ed2in objects extracts comments and their locations from the object attributes (if barebones is FALSE).

write_ed2in(ed2in, filename, custom_header = character(),
  barebones = FALSE)

# S3 method for ed2in
write_ed2in(ed2in, filename, custom_header = character(),
  barebones = FALSE)

# S3 method for default
write_ed2in(ed2in, filename,
  custom_header = character(), barebones = FALSE)

Arguments

ed2in

Named list of ED2IN tag-value pairs. See read_ed2in.

filename

Target file name

custom_header

Character vector for additional header comments. Each item gets its own line.

barebones

Logical. If TRUE, omit comments and only write tag-value pairs.