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

[Bug]: Getting "could not find function" for "has_all_names" in validate_if #84

Open
1 task done
TransGirlCodes opened this issue Aug 13, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@TransGirlCodes
Copy link

Guidelines

  • 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

@TransGirlCodes TransGirlCodes added the bug Something isn't working label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant