#' Remove spaces from string
#'
#' Removes all spaces from a string
#'
#' @param string original string
#' @keywords formatting
#' @export
removeSpacesString <- function(string){
newString <- string %>% as.character %>% gsub('\\s+', '', .)
return(newString)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.