I am a bit at a loss. I am now revisiting some script that I used multiple times before, which involves stringi, stringr, dyplr, data.table packages.
In the past it ran like a charm. Now however I keep getting the error "Error: cannot have attributes on a CHARSXP", which once started runs perpetually.
I cannot replicate it, as sometimes it does not come up at all. But if it comes up, it may be triggered by different lines of code. Usually that code involves editing character strings in a dataframe or data.table. Each time it can be a different line of code.
Attached is the screenshot of what that perpetually running error looks likes in RStudio. All I can at that point close and reopen RStudio project and then hope the error does not come up again.
Any ideas what can be causing this? What should I look into? Given that it is not replicable, I do not know where to start investigating it.
I already uninstalled and re-installed both R and RStudio just in case. It did not help.
Best regards, Maria