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

standalone checks without @import rlang #1698

Closed
JosiahParry opened this issue Mar 19, 2024 · 2 comments
Closed

standalone checks without @import rlang #1698

JosiahParry opened this issue Mar 19, 2024 · 2 comments

Comments

@JosiahParry
Copy link

I'd like to utilize many of the type checks that are available in standalone-types-check that are not available in vctrs or rlang. However, taking advantage of this seems to require including import(rlang) in the NAMESPACE. I'd like to avoid the wholesale importing of rlang.

Is there a future where rlang functions are called via namespace in the standalone scripts?

@lionel-
Copy link
Member

lionel- commented Mar 25, 2024

We tried that but had to backtrack, IIRC because rlang uses these functions on-load and the namespace isn't populated at that point, which causes :: to fail. The planned future is to have these functions exported from somewhere though.

@JosiahParry
Copy link
Author

Thanks @lionel-! For now, I've gone ahead and added the rlang:: namespace call manually. I'll close this and try and keep my eyes out for a new package or something :)

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