Closed rwbaer closed 4 years ago
@rwbaer, RStudio notebook and Rmarkdown do not support pop-up graphics devices, and therefore these cannot be using for gating. I did add the option to gate in the RStudio graphics device by setting popup = FALSE
in cyto_gate_draw()
, you could try that to see if it works. Generally speaking, there is an expectation that rendering documents/notebooks should proceed without user intervention.
I personally tell it not to run cyto_gate_draw()
chunks in-line, but instead paste them directly into the console. I then save the image after gating and incorporate that image into the document. Once you have finished gating you can just apply the gatingTemplate and continue with downstream analyses.
Sounds like a use-able workaround. Thanks
I'll presume you saw my edit about trying to source this plot command into a regular R script. The drawing goes okay, but there is no way to terminate it. Is this a limitation or can it be fixed? I'll not close this yet, so I'm sure you are aware of the edit.
Have you tried pressing ESCAPE
?
FYI this should only affect polygon gates, so other gate types will work fine :)
Describe the bug Perhaps this is not a bug and is just an incompatibility issue, in which case it could be considered a feature request. It would be nice to use CytoExploreR in RStudio notebooks as a way to neatly organize copious output.
But ...
Run this in a notebook and it produces an error [the code chunk code is swallowed here]
EDIT: As a workaround, I tried putting this code in a separate source file and sourcing it into the notebook. Same behavior. Then, I tried sourcing the cyto_gate_draw function into a regular R script. The graph draws and you can draw the polygate, but the right click to end the drawing sequence does not function. No mechanism to terminate.
The traceback
Expected behavior The program should draw graph and pause to collect mouse clicks before moving on. It seems not to in this context.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
RStudio 1.2.5042