rstudio/rstudioapi

selectionGet() is empty for undocked source editor

Closed this issue · 1 comments

As part of the job package, I've made an addin that runs the currently selected code as a job via rstudiapi::jobRunScript(). However, when the code is selected in an undocked RStudio source editor (after pressing
image below the ), it returns nothing.

Is there a way to capture a selection in an undocked RStudio source editor window?

Hmmm, after initially verifying this error multiple times, it seems to works just now! Will debug further before potentially re-opening this issue.