A valid VSM data file exists and needs to contain data, so >2kB in size, it also should have VSM or MPMS in the header

vsm.validFile(filename)

Arguments

filename

name of the file to check (include path)

Value

TRUE if it is a MPMS or VSM DAT file

Examples

filename = vsm.getSampleFiles()[1]
vsm.validFile(filename)
#> [1] TRUE