repoSetPath <- function(repo) {
PD <- packageDescription(repo)
if(is.null(PD$RemoteSubdir))
assign('repoPath', paste0(PD$GithubUsername, "/", PD$GithubRepo), pos = 1)
if(!is.null(PD$RemoteSubdir))
assign('repoPath', paste0(PD$GithubUsername, "/", PD$GithubRepo, "/", PD$RemoteSubdir), pos = 1)
repoPath
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.