R/insertDashLine.R

insertLine <- function(dashnb) {
  # Build the dash line
  line = paste0("#", paste0(rep("-",dashnb), collapse = ""))
  # Insert the line into current script
  rstudioapi::insertText(line)
}

insertDashLine <- function(){
  insertLine(79)
}
VLucet/Rdash documentation built on May 11, 2019, 3:03 p.m.