post_github_issue <- function(title, body) {
ght <- gh::gh_tree_remote()
title <- URLencode(title)
body <- URLencode(body, reserved = TRUE)
url <- sprintf("https://github.com/%s/%s/issues/new?title=%s&body=%s",
ght[["username"]], ght[["repo"]], title, body)
browseURL(url)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.