#' View options for fixed node separator characters
#'
#' @description
#' Preview character options for use as the fixed node separator in SWIGs.
#'
#' @param table Logical to show or hide HTML table display of available characters. Defaults to \code{FALSE}.
#'
#' @export sep_opts
#' @importFrom tibble tibble
#' @importFrom htmlTable htmlTable
sep_opts <- function(table = FALSE) {
sep.opts <- c("tilde" = "≀",
"vsep" = "∣",
"vlin" = "|",
"vdubs" = "‖",
"vdubl" = "∥",
"sol" = "/",
"soldub" = "⫽",
"bracks" = "][",
"rangle" = "⟩")
if (table) {
char.tab <- tibble(separator = names(sep.opts),
result = unname(sep.opts))
print(
htmlTable(char.tab,
rnames = FALSE,
css.table = "font-size: 1.5em; font-family: Arial, sans-serif;",
css.cell = "padding: 0.75em 1.5em;")
)
}
return(sep.opts)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.