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

[FR] Display promise / active-binding objects in the OUTLINE #362

Closed
shrektan opened this issue Jan 8, 2021 · 2 comments · Fixed by #364
Closed

[FR] Display promise / active-binding objects in the OUTLINE #362

shrektan opened this issue Jan 8, 2021 · 2 comments · Fixed by #364

Comments

@shrektan
Copy link
Contributor

shrektan commented Jan 8, 2021

Considering the following test file:

test.R

x <- 1
y <- "a"
z <- function() {
  'hello'
}
delayedAssign("d", 1)
delayedAssign("err", stop("err"))
makeActiveBinding("a1", function() 1, environment())

Currently, only x, y and z are displayed in the OUTLINE but d, err and a1 don't.

I hope we can have them in the OUTLINE, too.

image

@ManuelHentschel
Copy link
Member

Some other ways to assign toplevel variables that might be worth considering:

assign('b', 2)

`<-`('c', 3)

.GlobalEnv$d <- 4

e <<- 5

s <- 'f'
assign(s, 9)

aa <- bb <- 123

@shrektan
Copy link
Contributor Author

shrektan commented Jan 8, 2021

Yes, but personally I need the delayedAssign() version... so I'm going to focus on this first.

It seems that we may just need to handle delayedAssign() and makeActiveBinding() in parse_expr().

I'll try to fix this by myself...

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

Successfully merging a pull request may close this issue.

2 participants