close_all_sinks: Close All Sinks and Reset Message Output

View source: R/close_all_sinks.R

close_all_sinksR Documentation

Close All Sinks and Reset Message Output

Description

This function closes all active sink connections and ensures that subsequent outputs are displayed in the console.

Usage

close_all_sinks()

Value

NULL invisibly.

Examples

## Not run: 
  sink("output.txt")
  cat("This will be written to the file.")
  close_all_sinks()
  cat("This will be shown in the console.")

## End(Not run)

natehall329/nate_utils documentation built on Dec. 31, 2024, 3:25 p.m.