Skip to content

Commit

Permalink
FormatAsExcelLink
Browse files Browse the repository at this point in the history
NF
define an excel link
  • Loading branch information
vertesy committed Jan 16, 2022
1 parent 9793438 commit a3f11f9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions R/Stringendo.R
Original file line number Diff line number Diff line change
Expand Up @@ -622,3 +622,25 @@ parFlags2 <-
ww.break.lines <- function(char.vec = kppd(LETTERS), max.char = 50) {
gsub(pattern = paste0("(.{", max.char, "})"), "\\1\n", char.vec)
}





# _________________________________________________________________________________________________
#' FormatAsExcelLink
#'
#' @param site_name site_name
#' @param site_name site_name
#' @export
#' @examples FormatAsExcelLink(site_name = c("Zero Hedge", "Free Software Foundation"), site_url = c("https://www.zerohedge.com", "https://www.fsf.org"))

FormatAsExcelLink <- function(site_name, site_url) {
paste0(
"=HYPERLINK(\"",
site_url,
"\", \"",
site_name,
"\")"
)
}

0 comments on commit a3f11f9

Please sign in to comment.