You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently noticed that when rprojroot fails to find a file, the error that is shown is from normalizePath() and it doesn't show that it comes from find_package_root_file().
rprojroot::find_package_root_file("DESCRIPTION", path="../definitelynot")
#> Error in `normalizePath()`:#> ! path[1]="../definitelynot": No such file or directory
It would be very nice if there were an error_call = rlang::caller_call() argument here so that nicer error messages can be bubbled up. We use {rprojroot} extensively in {rextendr}.
The text was updated successfully, but these errors were encountered:
So far, rprojroot is free of hard dependencies, I'd like to keep it that way. Would your proposed solution work if rlang and/or fs were only suggested?
I recently noticed that when rprojroot fails to find a file, the error that is shown is from
normalizePath()
and it doesn't show that it comes fromfind_package_root_file()
.It would be very nice if there were an
error_call = rlang::caller_call()
argument here so that nicer error messages can be bubbled up. We use {rprojroot} extensively in {rextendr}.The text was updated successfully, but these errors were encountered: