Skip to content

setup_reprex() #245

@moodymudskipper

Description

@moodymudskipper

setup_reprex(fun, n = 1, nse = NULL)

  • fun : a function
  • n : number of reprexes to produce
  • nse: vector of args not to construct,

This basically traces the function for n calls, it opens a new untitled script every time, and constructs arguments and the call.

This is not the most general way to approach things because NSE and environments are complex, but this should really be ok for 99% use cases I think.

Call without a fun or n arg from inside the function itself to create a reprex while debugging, using locally modified values if relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions