View source: R/is_rmd_visual_mode.R
is_rmd_visual_mode | R Documentation |
Check if RStudio addins should treat the current selection of active document as being in RStudio Visual Markdown Editor mode (RS VME) or not.
is_rmd_visual_mode()
The document context from RS VME is different than regular RStudio document context.
Logical:
TRUE
if an active document is in Visual Markdown Editor mode and
current cursor position or selection is outside a code chunk.
FALSE
if an active document is:
a. not in the Visual Markdown Editor mode;
b. in Visual Markdown Editor mode but current cursor position or
selection is inside a code chunk.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.