[R] Set plotly javascript parameters in R

Hi,

I’m using R plotly. I would like to set “modeBarButtonsToRemove = [‘sendDataToCloud’]” via R. However, I can’t figure out how to set the config parameters to do that.

Here’s my code so far:

        p <- plot_ly(boxPlotData, y= value, color = key, type = "box", boxmean = TRUE) %>%
        config(p = ., staticPlot = FALSE, displayModeBar = TRUE, workspace = TRUE, editable = T, sendData = FALSE, displaylogo = FALSE,
               modeBarButtonsToRemove = list("sendDataToCloud"))

It doesn’t like that last parameter. Any help would be greatly appreciated!

This PR https://github.com/ropensci/plotly/pull/446 should help you get started.

Note that you may to upgrade your R plotly version to use the latest options.

thanks,very good. solved my point