rstudio / rstudioapi

Safely access RStudio's API (when available)
http://rstudio.github.io/rstudioapi
Other
165 stars 35 forks source link

Update documentation for chunk calls #196

Closed melissa-barca closed 3 years ago

melissa-barca commented 3 years ago

Make the id parameter optional for unregisterChunkCallback and update the documentation to reflect that. As is, the id or handle parameter is unnecessary as there can only be one callback registered at a time. I'm leaving that code there in case we allow for multiple callbacks in the future.

Relates to this issue: https://github.com/rstudio/rstudio/pull/7693