Starting from `start`, this function searches for a `.Rprofile` file in the current directory and then each parent directory until `stop_at` (inclusive) or the filesystem root is reached. The first `.Rprofile` found is sourced and the search stops immediately. The file is sourced with `chdir = TRUE`, so relative file paths in `.Rprofile` are resolved from the `.Rprofile` folder. Objects created by `.Rprofile` are assigned into the caller environment.
Usage
source_rprofile(start = getwd(), stop_at = "/")