10.6 OPTIONAL Interacting with R via the console or the source viewer

This section is optional

You can enter R commands directly into the console, or type them into a script file in the source viewer and then execute.

If you’ve just been using the console try this:

  • Click on the source viewer pane in RStudio
  • Type “getwd()” in the source viewer
  • Click on the “Run” button in the upper Right part of the pane
  • The getwd() command is sent over to the console and executed

End optional section