Write a brainvoyager v3, v4 or v5 SMP file.
write.smp.brainvoyager.v3or4or5(filepath, bvsmp, smp_version)
character string, the output file
bvsmp instance, a named list as returned by read.smp.brainvoyager
.
integer, the SMP file format version to use when writing. Versions 2 to 5 are supported, but only versions 2 and 3 have been tested properly. Please report any problems you encounter. When converting between file versions (e.g., loading a v2 file and saving the result as a v5 file), some required fields may be missing, and for those without a default value according to the official spec, you will have to manually add the value you want in the bvsmp object before writing.