Commit 251136f 1 parent 8f8b9af commit 251136f Copy full SHA for 251136f
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# usedthese (development version)
2
2
3
+ * Fixed occasional ` used_here() ` warning
4
+
3
5
# usedthese 0.3.2
4
6
5
7
* ` used_there() ` fails gracefully if Internet resource unavailable
Original file line number Diff line number Diff line change @@ -65,14 +65,13 @@ used_here <- \(fil = knitr::current_input()) {
65
65
dplyr :: distinct()
66
66
67
67
funs_scouted <- conflicted :: conflict_scout() | >
68
- purrr :: transpose() | >
69
- purrr :: list_flatten() | >
70
- purrr :: discard(is.null ) | >
71
- tibble :: as_tibble(.name_repair = " minimal" )
68
+ unlist() | >
69
+ dplyr :: bind_rows()
72
70
73
71
if (nrow(funs_scouted ) > 0 ) {
74
72
funs_scouted <- funs_scouted | >
75
73
tidyr :: pivot_longer(tidyselect :: everything(), names_to = " func" ) | >
74
+ dplyr :: mutate(func = stringr :: str_remove(func , " \\ d$" )) | >
76
75
dplyr :: summarise(pckg_preferred = stringr :: str_flatten_comma(value , na.rm = TRUE ), .by = func )
77
76
} else {
78
77
funs_scouted <- tibble :: tibble(pckg_preferred = " zzz" , func = " zzz" )
You can’t perform that action at this time.
0 commit comments