Read attribute table field names with `arcpy.da“ module.
da_fields(table.path)
A vector of field names.
if (FALSE) { # \dontrun{
arcpy$env$workspace = tempdir()
arcpy$env$scratchWorkspace = tempdir()
fc = arcpy$management$CopyFeatures(system.file("CA_Counties",
"CA_Counties_TIGER2016.shp", package = "arcpy"), "CA_Counties")
da_fields(fc)
} # }