knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(glitter) library(tidyverse) library(rlang)
I lost a file my repo but I forgot what I called it so I get a list of all the files ever deleted in the repo.
deletedFileHistory()
I find my long lost file on the list as R/logo.R
. I then get the commit history of that file using the full path.
fileCommitHistory(filePath = "R/logo.R", repo_path = "~/GitHub/Public-Packages/glitter/")
I find the commit SHA where I deleted the file. Using the SHA and path, I am able to retrieve the file.
retrieveLostFile(sha = "1b9ac7e47fc77f12c21ed2447a71ae8d77a0f37c", filePath = "R/logo.R", repo_path = "~/GitHub/Public-Packages/glitter")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.