I am using arc.write() in the R arcgisbinding package to write an sf object to a feature class in a file geodatabase. How do I define the field types of the resulting feature class. For example, I have a field in R which is a character (text) field - "2018-11-10". When I write this file to a feature class, this field gets interpreted as a 'double' field but I want this field to be interpreted as a 'text' field.
fgdb_path <- file.path("path")
arc.write(file.path(fgdb_path, "layer), data=sf_object)