repo_root: Show path to repo root

Description Usage Value Examples

View source: R/repo_public.R

Description

Show path to repo root

Usage

1

Value

character containing 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)

Example output

Repo root created.
Repo created.
[1] "/work/tmp/tmp/Rtmpgdpwvt/example_repo"

repo documentation built on March 26, 2020, 8:25 p.m.