Write MRS data object to file.
write_mrs(mrs_data, fname, format = NULL, force = FALSE)
object to be written to file, or list of mrs_data objects.
one or more filenames to output.
string describing the data format. Must be one of the following : "nifti", "dpt", "lcm_raw", "rds". If not specified, the format will be guessed from the filename extension.
set to TRUE to overwrite any existing files.