0

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

Screenshot of the Error message

1
  • Does this happen in R outside of RStudio as well? Or is this just in the RStudio IDE? What code and sample data can you provide that reproduces the problem?
    – r2evans
    2 mins ago

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.