2.3 Environment, History, and Connections Window

RStudio provides nice tools to keep you informed of your work.

The Environment tab allows you to see what objects are in the workspace. If you create variables or data frames, you have a visual listing of everything in the current workspace. (You can similarly achieve this by listing everything with the command ls().)

The History tab allows you to see the commands that you have entered. You can save the output in the history window by clicking on the save button using a *.r extension on your file so that the file can be automatically opened in R. (You can similarly have a written record of your commands by using the script window and saving a file with the commands that you created.)