R/rlo_scursor.R

Defines functions rlo_scursor

Documented in rlo_scursor

#' Get the current view cursor in the active document
#'
#' @importFrom PythonInR pyExec
#' @export
rlo_scursor <- function() {
  pyExec("scursor = text.createTextCursorByRange(doc.CurrentController.ViewCursor)")
}

Try the rlo package in your browser

Any scripts or data that you put into this service are public.

rlo documentation built on May 1, 2019, 10:22 p.m.