2.7 Pane Layout

Pop out an editor

Click the Show in New Window button in any source editor tab.

RStudio: pop out script

To return a document to the main window, click the Return to Main Window button on the editor toolbar.

RStudio: merge script


Environment Pane

By default, the Environment pane is located in the top-right and includes the Environment, History, Connections, Build, and Version Control System (VCS) tabs.

Version Control System (VCS)

The VCS tab will change based on the version control system you have enabled for that session. For example, using Git will change the tab name to Git and provide some common commands for viewing diffs, committing changes, pull and push … Output pane

The Output pane displays various outputs such as plots, HTML content, or on-disk files. It contains the Files, Plots, R Packages, Help, Viewer, and Presentation tabs.

Ref: RStudio Pane Layout


Global Options that make coding easier

  • Syntax highlight and matched parentheses.

    Under “Tools -> Global Options -> Code -> Display”, under Syntax section, check the boxes for highlight R function calls and use rainbow parentheses. The second is especially useful to mark matching opening and closing brackets.

  • Show whitespace characters.

    In “Tools -> Global Options -> Code -> Display”, check “Show whitespace characters”. This will let you see spaces and newlines in the editor.


Q: How to show Toolbar?
A: View > Show Toolbar.

References:

https://coding-club.rostools.org/posts/tips-and-tricks/