r-lib/backports

capture.output with `type=` parameter

Closed this issue · 2 comments

A type parameter was added to capture.output() for R 3.2.1-patched which passes type and split down to the internal sink() call. wch/r-source@d00b404.

It would be handy to add a backport so capture.output(type = "message") could be used on e.g. R 3.1.

mllg commented

Implemented in 9d14559.

I opted to backport this for R < 3.3.0 though. Binaries are only build for the minor versions, not for every patchlevel. Therefore it is rather difficult to reliably predict what happens if you use R-3.2.1 but using binaries build with R-3.2.3. Let me know if you encounter any problems.

Great thanks!