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

Debug-only version of vetr #68

Open
brodieG opened this issue Aug 19, 2017 · 0 comments
Open

Debug-only version of vetr #68

brodieG opened this issue Aug 19, 2017 · 0 comments
Milestone

Comments

@brodieG
Copy link
Owner

brodieG commented Aug 19, 2017

Likely implemented in combination with #66 and #67. The idea would be to have an option like getOption('vetr.debug') that modifies with_vetr or a variation of it such that it does not install the checks. That way, we can have input and output checks on all our functions, but just as easily we can set that option to FALSE and then the checks are not installed on.load as they normally would be. So all the internal functions would use that mode so we can immediately catch where something went wrong. External functions would probably continue to check their input (and only their inputs).

I don't think it is possible to implement this with on.exit, unfortunately, so we'll need to add a wrapping function which could potentially cause problems with how we match the input calls...

@brodieG brodieG added this to the 0.2.0 milestone Aug 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant