sinkReset: Resets any sink connections

Description Usage Details References Examples

Description

Resets any sinky connections. This makes the appropriate number of calls to sink so that no matter how many diversions there have been the output will be go to standard out once more.

Usage

1

Details

closeAllConnections() is a better alternative.

References

http://stackoverflow.com/a/18730656/1003565

Examples

1
2
3
4
5
6
sink("fakefileasdfasdfasdf.txt")
2 + 2 # this will get sent to fakefileasdfasdfasdf.txt
sink("anotherfakefile.txt")
3 + 3 # sent to anoterfakefile.txt
sinkReset()
2 + 2 # results should display in console

Dasonk/Dmisc documentation built on May 6, 2019, 1:36 p.m.