dir_run_branch: Corresponding (branch-specific) run directory

Description Usage Arguments Details Value

View source: R/dir.R

Description

If passed ~/analyses/project/folder/, where ~/analyses/project is the git toplevel folder, will return

Usage

1

Arguments

dir

A directory

check

Logical, if FALSE no test for whether dir is inside a git work tree

Details

mngr_option_dir_run("$GIT_TOPLEVEL")/$GIT_BRANCH/folder/

If mngr_option_dir_run($GIT_TOPLEVEL)=$GIT_TOPLEVEL, then just returns what was supplied

Value

Return the path to the corresponding run directory for the supplied directory. If the supplied dir is a run directory, then the supplied directory is returned.


rjbgoudie/mngr documentation built on May 27, 2019, 9:13 a.m.