Hello Emily,
shapefiles are a problematic file format for a number of reasons, one of them being a hard limit on the length of column names (10 characters). To accommodate that limit R and other software will truncate column names when saving shapefiles. Hence "Thmnphs_srts" is an abbreviated species name. There is also "Thmnphs_srtl", but they are both 12 characters (guess it removes vowels in the first step). Since that is still too long they get truncated and end up being identical, which likely causes the error.
That is not directly a camtrapR issue, but happens in the function that saves the shapefiles (st_write() from the sf package)
The best workaround is likely to save the spatial layer (output of detectioMaps) manually with st_write(). You can write to geopackage, which is generally a better format than shapefile and keeps the species names in the column headers intact.
Something like this should work:
outtable_sf <- st_as_sf(outtable,
coords = c(Xcol, Ycol))
outtable_sf <- st_set_crs(outtable_sf, shapefileProjection)
st_write(obj = outtable_sf,
dsn = "C:/path/to/geopackage.gpkg",
layer = "species_detections")
Best regards,
Jürgen