make_cran_uri <- function(dep, endpoint = 'api.github.com'){
sprintf('https://%s/repos/cran/%s/contents/DESCRIPTION', endpoint, dep)
}
make_gh_uri <- function(dep, endpoint = 'api.github.com', suffix = 'main'){
sprintf('https://%s/repos/%s/commits/%s', endpoint, dep, suffix)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.