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

Mechanism for (un)shielding symbols from substitution #1

Closed
brodieG opened this issue Sep 9, 2017 · 0 comments
Closed

Mechanism for (un)shielding symbols from substitution #1

brodieG opened this issue Sep 9, 2017 · 0 comments

Comments

@brodieG
Copy link
Owner

@brodieG brodieG commented Sep 9, 2017

Implement as an additional arg, e.g. shield.with='.', which then would allow things like:

recsub(quote(f(a + .(b)))

where b would be shielded from sub.

Potentially could add a second argument to allow skipping matching symbols, e.g. in a situation like:

Species <- quote(Species == 'versicolor')
Sepal.Width <- runif(150)
b <- quote(Sepal.Width > 2)
recsub(quote(iris[.(Species, 1) & b,], iris))

where we do not want the Species in iris to prevent expansion, but we do want normal behavior for everything else (hmm, this is not a very good example).

@brodieG brodieG added the enhancement label Sep 9, 2017
@brodieG brodieG added this to the 0.1.0 milestone Sep 9, 2017
@brodieG brodieG modified the milestones: 0.1.0, 0.3.0, 0.2.0 Oct 4, 2017
@brodieG brodieG added the fixed in dev label Oct 7, 2017
@brodieG brodieG modified the milestones: 0.2.0, 0.1.0 Oct 7, 2017
@brodieG brodieG closed this in 0757bc1 Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.