write_parameters_file.RdWrites an object of parameters to file ready for use in an sbatch job array.
write_parameters_file(
  x,
  filename = "parameters.csv",
  format = get_file_extension(filename),
  add_id = is_in("data.frame", class(x))
)data.frame or list of parameters to be written as a format file.
Path to output file.
Output file format using readr write_* functions. Currently only csv or rds!
Should an id variable be included, which is just a zero-padded row number. Defaults to true when x is some type of data.frame.
Invisibly returns the filename that was written.