Quickly determine what type of FIT file you have without decoding all the data. Typically types include 'activity', 'workout' and 'course'. The full range of options is defined in the FIT file specification.
readFitFileType(fileName)
As character vector of length 1. This will contain the text representation of the file type e.g. 'activity'
garmin_file <- system.file("extdata", "Activities", "garmin-edge530-ride.fit",
package = "FITfileR")
garmin <- readFitFileType(garmin_file)