Skip to content
Prev 13279 / 63424 Next

directing print.packageInfo to a file

The point about the proferred solution is that it works generally when
is is desired to capture output that is "printed" via file.show().  If
we start adding extra arguments to print.packageIQR (which is documented
to be internal, btw), we would need to do the same for print.libraryIQR
and print.hsearch and ..., i.e. for all print() methods which in fact
display something using file.show() as a "side effect".  That seems
suboptimal to me, when one can wrap the above in a very simple and
generally applicable function (and just calling the print() generic
rather than some method, btw).

-k