View source: R/Utility_Functions.R
git_report | R Documentation |
This function produces a short report about whether the current file is located in a Git repository and, if so, what commit it is at, and the status of the repository.
git_report(path = here())
path |
A character value containing the path to a folder containing a git repository, defaulting to the result of here::here(). |
This function facilitates concisely adding version control output to report scripts. It is basically a wrapper that calls git2r::repository() and git2r::status() after verifying that you are in a Git repository.
A data frame.
git_report()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.