has_git_user | R Documentation |
Check whether the values user.name
and user.email
exist exist for the current repository.
Uses git_signature_default
.
has_git_user(repo = ".")
repo |
The path to the git repository. |
Logical, indicating whether 'Git' global configuration settings could
be retrieved, and contained the values
user.name
and user.email
.
testdir <- file.path(tempdir(), "test_git_user")
dir.create(testdir)
gert::git_init(testdir)
has_git_user(testdir)
unlink(testdir, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.