A simple interface to rprojroot.

Motivation

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:

library(here)
#> here() starts at /home/travis/build/r-lib/here
here()
#> [1] "/home/travis/build/r-lib/here"
here("DESCRIPTION")
#> [1] "/home/travis/build/r-lib/here/DESCRIPTION"
here("R", "here.R")
#> [1] "/home/travis/build/r-lib/here/R/here.R"

Installation

Install from CRAN via

Install from GitHub via