Shiny actionButton() output in onRender() function of htmlWidgets
问题 My goal is to create a script where initially a blank plotly graph is displayed. If the user clicks on a Shiny actionButton saying "Add points", then points will be added to the plotly graph via the onRender() function of htmlWidgets. This would be efficient because the background blank plotly graph would not need to be replotted when the user selects the Shiny actionButton. However, in order for me to achieve this, I would need to figure out a way to indicate the change in the Shiny