Skip to content

Instantly share code, notes, and snippets.

@tanho63
Created June 23, 2022 22:32
Show Gist options
  • Save tanho63/e194fa3e10d9e85fdedae6318e688557 to your computer and use it in GitHub Desktop.
Save tanho63/e194fa3e10d9e85fdedae6318e688557 to your computer and use it in GitHub Desktop.
library(yaml)
url_tag <- "<a href='http://my-url.com'>My website</a>"
quoted <- function(x){
attr(x, "quoted") <- TRUE
return(x)
}
list(x = quoted(url_tag)) |> yaml::as.yaml()
# Gist URL https://gist.github.com/e194fa3e10d9e85fdedae6318e688557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment