This package helps accessing files relative to a project root to stop the working directory insanity.

Installation and further reading

Install from GitHub:

devtools::install_github("r-lib/rprojroot")

See the documentation for more detail.