This package helps accessing files relative to a project root. Install from GitHub:
devtools::install("krlmlr/rprojroot")
See the vignette for more detail.
find_root
find_root_file
(find_package_root_file, find_rstudio_root_file, make_find_root_file, make_fix_root_file)