constructive icon indicating copy to clipboard operation
constructive copied to clipboard

construct reprex from call ?

Open moodymudskipper opened this issue 1 year ago • 0 comments

construct_reprex() will construct the local environment entirely, that might be too much.

We could have a call argument, and we'd do as we did in {historian} :

  • Turn all the things into lazy bindings
  • Run the call
  • Check what is not lazy anymore
  • construct it

So when I'm debugging, right before a call, rather than calling construct_reprex(), we'd call construct_reprex(call = foo(x, a$b, bar(bar)), call is ignored if n is not default.

moodymudskipper avatar Jul 05 '24 13:07 moodymudskipper