Say I have an R project opened at the following directory /home/user/workarea/project1. Now I have a nested directory structure underneath and I am writing a fu
It sounds like the rprojroot package will provide what you're looking for -- in particular, the find_rstudio_root_file() function should provide what you need.