R/comments.R

Defines functions rs_comment_uncomment

Documented in rs_comment_uncomment

# Comment/Uncomment ----------------------------------------------------------

#' @name comment
#' @title Comment/Uncomment selected lines
#' @description
#' Comment or uncomment selected lines.
#'
#'
#' @family 'Comment' addins
NULL

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#' @name comment
#' @export
rs_comment_uncomment <- function() {
    rstudioapi::executeCommand("commentUncomment", quiet = TRUE)
}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GegznaV/addins.rs documentation built on May 5, 2023, 11:12 p.m.