Skip to content

Should dr_here() return its output invisbly? #159

Open

Description

@MilesMcBain

Thanks for dr_here(). I was able to use it to debug some pathing issues in a mono repo setup with multiple projects in the same repository.

One issue I ran into is that I was seeing pathing problems show up in a subprocess only, which was hard to debug with dr_here() since it writes a message.

So I had to do:

stop(capture.output(here::dr_here(), type = "message"))

To get the dr_here() output returned to the main process.

A bit more convenient and intuitive would probably be like:

here_diagnostics <- here::dr_here()
stop(here_diagnostics)

Which relies on dr_here() returning its output rather than NULL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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