Skip to contents

Regardless of the current working directory this function will always locate files relative to the g6tr monorepo root.

Usage

g6tr_here(...)

Arguments

...

[character]
Path components below the g6tr monorepo root, can be empty. Each argument should be a string containing one or more path components separated by a forward slash "/".

Examples

if (FALSE) { # \dontrun{
# set working directory to monorepo base
setwd(g6tr_here())

# find .Renviron file
g6tr_here(".Renviron")
#> [1] "/home/rstudio/g6tr/.Renviron"

# change wd to something else
setwd("packages/g6tr.projects/")

# still finds .Renviron at the root
g6tr_here(".Renviron")
#> [1] "/home/rstudio/g6tr/.Renviron"

# find g6tr.voice package directory
g6tr_here("packages/g6tr.voice")
#> [1] "/home/rstudio/g6tr/packages/g6tr.voice"
} # }