Finds the root directory of the current R project using various heuristics.
The function searches for markers like resultcheck.yml, .Rproj files,
or a .git directory. When running inside a sandbox created by
setup_sandbox(), it will search from the original working directory.
Examples
if (FALSE) { # \dontrun{
root <- find_root()
print(root)
} # }