Skip to content

Instantly share code, notes, and snippets.

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