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

Symbol assignment? #18

Closed
mikldk opened this issue Apr 8, 2020 · 2 comments
Closed

Symbol assignment? #18

mikldk opened this issue Apr 8, 2020 · 2 comments

Comments

@mikldk
Copy link
Contributor

mikldk commented Apr 8, 2020

symbols('x', 'y') # assigns x and y in .Global.Env
@mikldk
Copy link
Contributor Author

mikldk commented Feb 8, 2021

Possibly with unevaluated arguments:

global_symbols(x, y) # assigns x and y in .Global.Env

@mikldk
Copy link
Contributor Author

mikldk commented Feb 8, 2021

Please also note

Maybe implement with something like

global_symbols <- global_symbols(..., env = parent.frame()) {
    # ...
    assign(name, value = vars[[name]], envir = env)
}

mikldk added a commit that referenced this issue Feb 18, 2021
@mikldk mikldk closed this as completed Feb 18, 2021
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