R/runScriptAddin.R

run.script.addin <- function(input.path = NA) {
  if(is.na(input.path)) {
    input.path <- rstudioapi::getActiveDocumentContext()$path
  }
  if(input.path == "") {
    cat("No input path specified, make sure your cursor is within your script not the console\n")
  } else {
    debug.init(input.path)
  }
}
jwons/provDebugR documentation built on May 3, 2019, 3:40 p.m.