The previous R session was abnormally terminated due to an unexpected crash" when using the function "fviz_nbclust"

Hi,
I keep getting the error "The previous R session was abnormally terminated due to an unexpected crash" when using the function "fviz_nbclust" specifically with the "wss" method. It runs fine and produces a plot with the "silhouette" method. Been stuck on this for the entire day now. Could someone please help?

  • I am using RStudio Cloud

  • I restarted my project several times, ran the code from scratch several times, nothing seems to work.

  • The xls file that I am reading from (called "Computers.xlsx") is 215 KB in size. So I am guessing size is not an issue?

Following is the link to my project: (Access is "everyone")

https://rstudio.cloud/project/1404899

Thanks.

Hi there,

I was able to reproduce the problem you are seeing, and I believe it is being caused by a crash due to running out of memory. By default, projects are limited to 1GB of memory your code seems to be consuming all of it.

Hope that helps
-Andy