RStudio Console Output Redirection

In RStudio Console, most times we need to execute some commands a number of times for testing purposes. All though it serves the purpose of tracing a bug or refining the output, but still printing the output on the same console window makes it congested. To keep the console window clean, a R package “rite” creates a separate window for output. Moreover, you can move this window to another monitor as well. Although it provides various options, but for a minimal purpose you can start with this as

  1. Install package –   install.packages(“rite”)
  2. Load the package
  3. Start a separate window as – sinkstart ()
  4. Stop  this window as – sinkstop()

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s