#' Remove domain from path
#' @param x path aka URL from which to first infer domain and then remove it
remove_domain <- function(x){
unlist(lapply(
x,
function(x){
if( is.na(x) ){
return(x)
}else{
stringr::str_replace(x, paste0("^.*", "\\Q", guess_domain(x), "\\E"), "")
}
}
))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.