moodymudskipper / flow

View and Browse Code Using Flow Diagrams
https://moodymudskipper.github.io/flow/
Other
395 stars 26 forks source link

regular expressions in flow_view_deps #133

Closed moodymudskipper closed 1 year ago

moodymudskipper commented 1 year ago

Closes #106

When using the name pattern in the provided vectors, we can provide a regular expression to match functions described in their pkg::fun or pkg:::fun notation. In case of conflict, e.g. if a regex in promote matches a fixed name in demote, the fixed name takes precedence. If 2 regex conflict you're on your own.

library(flow)
flow_view_deps(here::i_am, promote = c(pattern = ".*::g"))

flow_view_deps(here::i_am, promote = c(pattern = "rprojroot::.*"))

flow_view_deps(here::i_am, hide = c(pattern = "here:::s"))

Created on 2022-11-24 with reprex v2.0.2