Another important thing to mention is that anything that needs to be run from the terminal can be done through the R command prompt using system(""). It will also print the information in the typical Unix format.

> system("pwd")
/Users/Path/Through/The/Computer