warning in .rs.sanitizeCall()

This post is promted by this answer on stackoverflow.

A line in .rs.sanitizeCall() produces a warning when the length of length(object) is greater than one

long <- is.name(callee) && length(object) > 20

It was suggested that the issue could be fixed by changing it to either

long <- is.name(callee) && length(object)[1L] > 20

or

long <- is.name(callee) && any(length(object) > 20)

EDIT: The purpose of this post was to bring this issue to the attention of the developers; the function is in tools:rstudio. If someone knows a better way of doing that, would you please let me know?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.