RStudio freezes up while executing simple code

Hello everone!
I have a weird problem with RStudio IDE. While I am executing even simply piece of code with plotly function, it sudenlly freezes up. First code below executes with over 1GB ram usage for RStudio, 2nd one takes 2 times more and freezes up RS. I can't even close it, the only way is to abort session (after like 2min the window appears) or end task in windows manager. The interesting thing is that I can see how ram usage grows, approximately 20-50mb per ~1sec
I have w11 with 16GB RAM (total) and cpu r5 1600

diamonds %>%
  plot_ly(
    x = ~color,
    y = ~price,
    color = ~clarity
  ) %>%
  add_bars(
    showlegend = F,
    xaxis = list(title = "Colour"),
    yaxis = list(title = "Price")
  )



diamonds %>%
  plot_ly(
    x = ~color,
    y = ~price,
    color = ~clarity,
      text = ~paste(
        "Some details about this bar: ", "<br>",
        "Colour: ", color, "<br>",
        "Clarity: ", clarity, "<br>",
        "Price: ", price, "<br>"
    ),
      hoverinfo = "text"
  ) %>%
  add_bars(
    showlegend = F,
    xaxis = list(title = "Colour"),
    yaxis = list(title = "Price")
  )

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.