This is my code
setwd("MYDIR")
library(readtext)
zip_data = readtext("myfile.zip", text_field = "mytext_field")
I got this error : Error in sort_fields(result, path, text_field) : There is no field called "mytext_field" in file ~~~~(dir)
I directly checked the csv file in the zip file, there is
"mytext_field" in the csv file
what should i do?
I googled but have no luck
What I tried :
zip_data = readtext("myfile.zip", text_field = "mytext_field", encoding="UTF-8)
zip_data = readtext("myfile.zip", text_field = "mytext_field", encoding="UTF-8", fileEncoding="UTF-8")