Black Lives Matter. Please consider donating to Black Girls Code today.

My script stopped working

My script is:

R6_plot <- plot_ly(data = data.frame(giorni_R6_buoni = index(R6_buoni), R6_Buoni = as.numeric(R6_buoni)),
              x = ~giorni_R6_buoni,
              y = ~R6_Buoni,
              type = "scatter",
              mode="markers",
              marker=list(size = 5,
                          sizemax = 20,
                          opacity = 1,
                          blend = TRUE,
                          color = "rgb(30, 144, 255)",
                          boder = list(
                            color = "rgb(30, 144, 255)",
                            arearatio = 0.5
                          )
                          ),
              name ="R6 buoni",
              hoverinfo = "text",
              text = paste("Date = ", index(R6_buoni), "R6 = ", as.numeric(R6_buoni))
              )

R6_plot <- add_trace(R6_plot,
                x = index(R6_anomali),
                y = as.numeric(R6_anomali),
                mode="markers",
                marker=list(size = 5,
                            sizemax = 20,
                            opacity = 1,
                            color = "rgb(255, 165, 0)"),
                name = "R6 anomali",
                hoverinfo = "text",
                text = paste("Date = ", index(R6_anomali), "R6 = ", as.numeric(R6_anomali))
                )

R6_plot <- add_trace(R6_plot,
                x = index(tolleranza_R6_limiti),
                y = as.numeric(tolleranza_R6_limiti$lim_inf),
                fill = "tozeroy",
                fillcolor = "rgba(255, 165, 0, 0.16)",
                line = list(
                            color = "rgb(30, 144, 255)",
                            width = 0.5),
                mode = "line",
                showlegend = F
)

the point is that it worked before today and I don’t know why now it isn’t working…
when I run the first plot_ly function and the first add_trace function it works. When I run the last add_trace function I recieve an error message on the console:

Errore: Variables must be length 1 or 8766.
Problem variables: ‘text’

This is happening on all my devices, even if I reinstall R or Rstudio or packages or whatever…

This shouldn’t be happening in the most recent version