-
Notifications
You must be signed in to change notification settings - Fork 16
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
print() support for variable arguments #181
Comments
I am not familiar with the print system in R, so I need to try it. |
This looks complex. The R native print method:
... is then mapped by renjin like this: So the question is, should Processing.R mode be giving full access to the Processing(Java) |
I think P.R should support these two ways, since The users comes from both Processing and R community. |
Interesting. Supporting both methods would either require:
Which approach do you think makes more sense? Or is there another approach? |
Thinking about this further, I think that "print" in R mode should be left in an R-native style -- it takes a single object, which may be a vector. To make this easier for learners, I could:
|
#176 adds support for redirecting print() to console -- this works well for one argument.
In Processing(Java), print supports varargs -- e.g.
void print(Object... arg){}
, like this:You can see it in the docs here:
Two questions:
print(mouseX, mouseY);
print("a", 1, "b", mouseX)
?The text was updated successfully, but these errors were encountered: