An Introduction to R and RStudio

Code Completion: Tab becomes your best friend

Using the [Tab] key allows you to auto complete or search for files/functions/data and much more. If you have used a Unix/Unix-like environment you will probably be very familiar with this functionality.

Example: type lib into the R console pane and then press [Tab]. What are you presented with?

This also works for files that are located in your home directory. Type “” (quote marks) into the console and press [Tab], you can start to see how useful this function is. Many programmers will probably call me lazy, but I find using [Tab] invaluable – it saves a heck of a lot of typing!