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

Pass optional vector of boolean variables that can cause re-running the code #11

Open
jhrcook opened this issue Dec 8, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jhrcook
Copy link
Owner

jhrcook commented Dec 8, 2020

It could be useful to include an optional parameter that can take a vector of boolean values to cause the code to be re-run and stashed. I will need to think about whether to use any() or all() and whether to have TRUE or FALSE trigger running the code.

@jhrcook jhrcook added enhancement New feature or request good first issue Good for newcomers labels Dec 8, 2020
@torfason
Copy link
Contributor

torfason commented Mar 9, 2022

If this were to be implemented, I would argue for just a simple TRUE/FALSE value, not a vector. That way, it is up to the user to decide whether to use any() or all() if they need a more complicated setup.

Either restash or perhaps more explicitly force_restash sound like reasonable names. Other caching functions have also used rerun (I guess all of these would trigger running on TRUE, with FALSE as the default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants