A simple interface to rprojroot.
rprojroot
The logic to find a project root based on certain criteria is packaged in the rprojroot package. Many projects might not need the full power, and the complexity that comes with it. Meet here:
here
library(here) #> here() starts at /home/muelleki/git/R/here here() #> [1] "/home/muelleki/git/R/here" here("DESCRIPTION") #> [1] "/home/muelleki/git/R/here/DESCRIPTION" here("R", "here.R") #> [1] "/home/muelleki/git/R/here/R/here.R"
here isn’t on CRAN yet, install from GitHub via
devtools::install_github("krlmlr/here")