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

Export is_promise2 #57

Open
blmoore opened this issue Mar 17, 2017 · 0 comments
Open

Export is_promise2 #57

blmoore opened this issue Mar 17, 2017 · 0 comments

Comments

@blmoore
Copy link

blmoore commented Mar 17, 2017

I found is_promise2 via this SO answer and it seems to be the only way to check that delayedAssign is working as expected outside of the GlobalEnv. Is there a reason it's not exported?

My use case:

e <- new.env(parent = emptyenv())
delayedAssign("var", 1:1e10, assign.env = e)

pryr::is_promise(e$var)
# Error: cannot convert to symbol (SYMSXP)

pryr:::is_promise2("var", e)
# [1] TRUE
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

1 participant