yihui/xfun

proj_root is not working correctly

Closed this issue · 0 comments

proj_root is not using all rules to identify root.

xfun/R/paths.R

Line 114 in 1416136

for (i in seq_along(nrow(rules))) {
you are using seq_along(nrow(rules)) which will return a number only (1), should use seq_len(nrow(rules))