data.validator
data.validator copied to clipboard
[Bug]: Getting "could not find function" for "has_all_names" in validate_if
Guidelines
- [X] I agree to follow this project's Contributing Guidelines.
Project Version
0.1.6
Platform and OS Version
Windows
Existing Issues
No response
What happened?
I'm having trouble using validate_if inside of code that is modularised using box. It seems to be that the assertr functions I use inside the expression given to validate_if are not available at the point the expression passed to validate_if is evaluated by the tidy_eval line in assertr::verify.
Steps to reproduce
I've written a toy example here: https://gist.github.com/TransGirlCodes/d86d1a233a4575b3210a1f99a7467475
In an RStudio project, simply run the code in the tester_script.R file.
Expected behavior
It would be great if there is a workaround to be able to use validate_if from inside a box module without having to use the :: syntax, which defies the point of box somewhat.
Attachments
No response
Screenshots or Videos
No response
Additional Information
No response