R/target_blank.R

#' Generate Target Blank <a>
#'
#' Generate Target Blank <a>.
#'
#' @param text text
#' @param href link
#' @export
#' @examples target_blank("Google Search", "https://www.google.com/")
target_blank <- function(text, href){
  p <- paste0("<a href='",href,"' target='_blank'>", text,"</a>")
  clipr::clear_clip()
  clipr::write_clip(p)
  print(p)
}
data-steve/blogtools documentation built on May 14, 2019, 6:17 p.m.