Error in FUN(content(x), ...)

Without a reprex it is hard to help out more here (FAQ: How to do a minimal reproducible example ( reprex ) for beginners). Could you offer one, or a set of data that replicates the error?

Looking at a recent post here on the same error message, it suggests this error message may occur when using the tm package and when the text with "characters not recognized by the character encoding format".

Find out what encoding the file has (often issue when files were generated on for example Mac and then used on Windows or vice versa) and then specify that in R like so:

data = read.csv("data.csv", encoding="UTF-8")

Another option is to remove all special characters by using something like toString()

Would love to see a reprex, or let us know what your solution is!