R/runpy.R

#' Run only selected lines
#'
#' @export
#'
runpy <- function(){
  context <- rstudioapi::getActiveDocumentContext()
  if(context$selection[[1]]$text!=""){
    PythonInR::pyExec(context$selection[[1]]$text)
  }
}
pontsuyu/rowpy documentation built on May 22, 2019, 12:40 p.m.