Skip to content

print() support for variable arguments #181

Open
@jeremydouglass

Description

@jeremydouglass

#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:

print("a", 1, "b", mouseX);

a 1 b 75

You can see it in the docs here:

Two questions:

  1. How hard would it be to support this in Processing.R? It isn't high priority, but it is common when logging to write for example print(mouseX, mouseY);
  2. If it could be supported, what is the most natural way to write varargs variable length argument lists in R? Would it just be print("a", 1, "b", mouseX)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions