git_root_directory | R Documentation |
From a subdirectory within a git project locate the root directory. This is the directory containing the .git files.
git_root_directory(dir)
dir |
The directory to locate the git project root from. |
The git project root normalized, or throws an error if this can't be located.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.