That means it's unlikely it's a problem with RStudio itself (since it's also a problem in R). So I'm going to move this out of the IDE category.
I don't know the HistDAWass package, but, given how specific this is, you might have more luck on StackOverflow.
Either way, though, you'll need some sort of a reproducible example. Since your code is crashing, you won't be able to make a full reprex (short for minimal reproducible example). However, the code for loading the library, a small sample of the input data, etc. will go a long way towards helping us help you.