guard against evaluation of active bindings#1038
Merged
renkun-ken merged 1 commit intoREditorSupport:masterfrom Mar 10, 2022
Merged
guard against evaluation of active bindings#1038renkun-ken merged 1 commit intoREditorSupport:masterfrom
renkun-ken merged 1 commit intoREditorSupport:masterfrom
Conversation
- when inspecting environments - when composing data view of environments fixes REditorSupport#1030
Member
|
Just curious, does |
Collaborator
Author
|
HA. I'll have to check. That would be fun. |
Member
fun <- function(x) {
bindingIsActive("x", environment())
}
fun(stop("early evaluation!"))Looks like |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #1030
What problem did you solve?
Fixed evaluation of active bindings when collecting data for the data view and the workspace viewer.
It may be that the guard is only desired when looking in the global environment for the workspace view?
(If you do not have screenshot) How can I check this pull request?
Check the test code from #1030 and confirm "get" is no longer printed, except when the active binding is accessed: