Chart Studio creates broken R code

I don’t really know where to file an issue for this, but you might want to have a look at this and the according R code.