#' A string function to remove whitespace
#'
#' This function will remove all whitespace before and after a string
#' @param str The string that should have it's whitespace removed
#' @export
#' @examples
#' strClean(str)
strClean <- function(str){
str <- gsub("^\\s+|\\s+$", "", str)
return(str)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.