library(fromonto)

This package provides a suite of I/O redirection operators, which allow the user to execute a goal with the current input or output stream temporarily redirected to a specified stream, file, or list of characters. See lib-abs.