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

How to install plotly 4.0 in R?

There seems to be a new version of plotly (4.0) with additional functionalities, such as “add_lines”. See for example the example of this blog post: http://moderndata.plot.ly/macroeconomic-charts-by-the-fed-using-r-and-plotly/.
I installed the latest version of plotly from the github repository (development version), however I get the error: “Error in function_list[i] : could not find function “add_lines””.

Thank you, Valérie

The best way to try this out before an official release will be using devtools.

devtools::install_github("ropensci/plotly@fix/nse")

Thank you for your help. I was away for a while and just tried now, but I receive an error :
“Error: parse error: trailing garbage 404: Not Found”