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
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?