Skip to main content

R

Bindings: %r, %r.ir, %r.shiny

BindingUse it for
%rR console-style scripts, with knitr-rendered output (plots, tables) inline
%r.irR via an IRKernel/Jupyter-style interactive session
%r.shinyRunning an R Shiny application, rendered in an iframe inside the paragraph
%r
summary(mtcars)
plot(mtcars$mpg, mtcars$hp)

Configuration

PropertyDefaultDescription
skeyenote.R.cmdRPath to the R binary executable.
skeyenote.R.knitrtrueWhether to render output through knitr.
skeyenote.R.maxResult1000Max number of dataframe rows to display.
skeyenote.R.image.width100%Width used when rendering R plots.
skeyenote.R.shiny.portRange(any port)Port range Shiny apps are allowed to launch on, as <start>:<end>.
skeyenote.R.shiny.iframe_width / skeyenote.R.shiny.iframe_height100% / 500pxSize of the iframe a Shiny app is rendered in.

These are set by your administrator from the interpreter settings screen.