workdir {git2r} | R Documentation |
Workdir of repository
workdir(repo) ## S4 method for signature 'missing' workdir() ## S4 method for signature 'git_repository' workdir(repo)
repo |
The repository |
Character vector with the path of the workdir. If the
repository is bare, NULL
will be returned.
## Not run: ## Create a directory in tempdir path <- tempfile(pattern="git2r-") dir.create(path) ## Initialize a repository repo <- init(path) ## Get the path of the workdir for repository workdir(repo) ## End(Not run)