r-lib / debugme

Easy and efficient debugging for R packages
https://r-lib.github.io/debugme/
Other
147 stars 10 forks source link

Implement using conditions #36

Open gaborcsardi opened 5 years ago

gaborcsardi commented 5 years ago

That will allow debugging subprocesses.

krlmlr commented 5 years ago

Can you elaborate?

gaborcsardi commented 5 years ago

Instead of cat(), we use message() with a custom class, and support top level handlers. E.g. you can have a top level handler that can do something special with the debug messages, put them on an RStudio pane, etc.

krlmlr commented 5 years ago

What about color?

gaborcsardi commented 5 years ago

That's fine. If the condition is not muffled, then we still cat(), with color.