This is recent R-devel, but AFAICT all R versions are affected.
Also AFAICT, currently only happens on macOS with Aqua, and on
Windows, unless you are in RTerm. These do not use R_Consolefile

Code to reproduce:

x <- paste0(strrep(".", 8191), "MIA")
#> [1] 8194

## This is fine:
cat(x, file = stdout())

## This truncates silently:
cat(x, file = stderr())

It happens because the vfprintf callback of stderr() is stderr_vfprintf [1],
and that just calls REvprintf [2], which truncates at 8191 characters [3], if
R_Consolefile is not used.


______________________________________________ mailing list

Reply via email to