-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support assignment to splatted variables in REPL R"" #127
Comments
Alternatively, we can provide some helper functions. For example
|
Yes, that would also be handy! |
I just notice that CXX.jl uses the syntax The remaining question is: should the assigned variable be a |
Cool! Maybe still use I think my preference would be a converted julia object, that again seems more consistent with how things work the other way round, and probably what people want in most cases. For the |
I guess there is a difficulty in parsing |
the reason I didn't pursue this is that I couldn't figure out the exact behaviour, e.g. x = 1
R"for (i in 1:10) {$x <- $x + 1}" |
I think we should restrict to top level only and the right hand side must be a valid R expression. Perhaps, only at the top level of R repl mode. |
I'm actually not sure this is a good idea, so more putting this up for discussion here.
Could something like
R"$x=5"
assign the 5 to the julia variable
x
? And the same in the REPL.The text was updated successfully, but these errors were encountered: