Show path to repo root

Share:

Description

Show path to repo root

Usage

1

Arguments

rp

An object of class repo.

Value

character cotaining the path to the root of the repo.

Examples

1
2
3
4
5
6
rp_path <- file.path(tempdir(), "example_repo")
rp <- repo_open(rp_path, TRUE)
print(rp$root())

## wiping temporary repo
unlink(rp_path, TRUE)