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

Erroneous detection of list elements as dependencies #938

Closed
3 tasks done
wlandau opened this issue Jul 13, 2019 · 0 comments
Closed
3 tasks done

Erroneous detection of list elements as dependencies #938

wlandau opened this issue Jul 13, 2019 · 0 comments
Assignees

Comments

@wlandau
Copy link
Member

wlandau commented Jul 13, 2019

Prework

Description

drake accidentally detects list elements as dependencies. Sorry everyone, fixing this bug might invalidate some workflows.

Reproducible example

drake:::analyze_code(quote(x$y))
#> $globals
#> [1] "x" "y"

Created on 2019-07-12 by the reprex package (v0.3.0)

Expected output

y should be ignored.

drake:::analyze_code(quote(x$y))
#> $globals
#> [1] "x" "y"

But isn't this non-standard evaluation?

Yes, $ is technically NSE, and I know I said drake would not get into any of that. But $ is just too clear, simple, predictable, and ubiquitous to ignore.

@wlandau wlandau self-assigned this Jul 13, 2019
@wlandau wlandau changed the title Erroneous detection of list elements Erroneous detection of list elements as dependencies Jul 13, 2019
wlandau pushed a commit that referenced this issue Jul 13, 2019
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