On Sun, 24 Jul 2022 16:03:24 +1200
Rolf Turner <r.tur...@auckland.ac.nz> wrote:

> My impression is that if the right hand side of a formula gets "too
> long", then it gets split into parts --- which messes everything up.

For new enough R (≥ 4.0), it's possible to use deparse1() [*], which
guarantees to return a single string. Otherwise, the simplest
workaround would be paste(deparse(...), collapse = ' '), which is
similar to how deparse1 is defined.

-- 
Best regards,
Ivan

[*] https://bugs.r-project.org/show_bug.cgi?id=17671#c1

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to