I am not sure you will find too much help with the limited amount of information provided so far -- other than to point you to r-help mailing lists and stack overflow posts mentioning that error.
I think you'll improve the chances of finding help if you offer a minimal reproducible example.
If you're not familiar with that; FAQ: What's a reproducible example (`reprex`) and how do I do one?