[R] Error generated by nlme::gnls

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Sun Jul 24 06:58:01 CEST 2022

On Sun, 24 Jul 2022 16:03:24 +1200
Rolf Turner <r.turner using 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,

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

More information about the R-help mailing list