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
Running hydroweight_attributes with a numeric loi throws this error
Error in stringr::str_replace():
! Can't recycle string (size 30) to match pattern (size 3).
Run rlang::last_trace() to see where the error occurred.
Error is from lines 181-183. @Smendero and I were able to introduce a quick fix (but not generalizable) by using str_c(loi_columns, "|") - but this solution is not ideal or generalizable as it requires our loi columns are in the correct order if they contain similar text.
e.g., c("Defo", "Defo_weighted") needs to be arranged c("Defo_weighted", "Defo") or else only "Defo" will be extracted from all column names.
The text was updated successfully, but these errors were encountered:
Running hydroweight_attributes with a numeric loi throws this error
Error in
stringr::str_replace()
:! Can't recycle
string
(size 30) to matchpattern
(size 3).Run
rlang::last_trace()
to see where the error occurred.Error is from lines 181-183. @Smendero and I were able to introduce a quick fix (but not generalizable) by using str_c(loi_columns, "|") - but this solution is not ideal or generalizable as it requires our loi columns are in the correct order if they contain similar text.
e.g., c("Defo", "Defo_weighted") needs to be arranged c("Defo_weighted", "Defo") or else only "Defo" will be extracted from all column names.
The text was updated successfully, but these errors were encountered: