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
In general, I can imagine many other scenarios where I'd want to walk a directory for it's side effect based on a globbing pattern. Maybe I'm just failing to understand the logic of dir_walk and dir_map, but they seem like attractive alternatives to piping dir_ls() version into a purrr function (and thus introducing a purrr dependency).
The text was updated successfully, but these errors were encountered:
The implementation doesn't really make this easy to do, the mapping is done in C++, so there is no (easy) way to match against a glob or regex pattern without adding a dependency to a regex library.
You can always do the filtering in the function, e.g.
It's not obvious to me why
dir_walk
anddir_map
lack theglob
andpattern
argument present in the other list functions (dir_ls()
and friends).For example, I'd like to have travis check if all Rmds can render in a given git repo.
Something like:
seems like a nice alternative to:
In general, I can imagine many other scenarios where I'd want to walk a directory for it's side effect based on a globbing pattern. Maybe I'm just failing to understand the logic of
dir_walk
anddir_map
, but they seem like attractive alternatives to pipingdir_ls()
version into apurrr
function (and thus introducing apurrr
dependency).The text was updated successfully, but these errors were encountered: