Set Working Directory to Project Root
set_project_root.Rd
Uses find_project_root()
to locate a project root based on a specified target
file, and sets the working directory to that root if found.
Value
Invisibly returns the same list as find_project_root()
, including
project.root
, original.dir
, success
, etc.
Details
This function changes the working directory as a side effect. If no target is found, the working directory remains unchanged and a warning is issued.