Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to move up a level with whereami::whereami() #24

Open
guybrettrobertson opened this issue Mar 10, 2022 · 1 comment

Comments

@guybrettrobertson
Copy link

Thanks for the package - it's really useful.

I'm wondering if there is a possibility that a feature could be added whereby whereami::whereami() could have an argument to move up a level. Below I'll explain what I mean and why I think this would be useful.

I'm currently using whereami::cat_where(whereami::whereami()) many dozens of times throughout my Shiny app. I would like to be able to use the different types and colours but as it stands I'd need to do that in each instance. I would therefore like to create a wrapper function around this called something like log_reactivity(). But if I do this, every whereami() call would then just print that it is being called from log_reactivity(), which is not helpful. It would therefore be great if I could pop up a level (for some reason I'm imagining the function stack upside down, apologies if this isn't clear).

@yonicd
Copy link
Owner

yonicd commented Mar 10, 2022

thanks for the suggestion.

There currently is an active log that is being managed internally within the package. Is this what you would want access to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants