Friday, 12 June 2015

R : Writing code and setting working directory on Mac


You can get the details about your working directory by typing “getwd()” command in R Console.

> getwd()
[1] "/Users/harikrishna_gurram"

By default, it is my home directory on mac. I want to change my working directory some other location. You can do this easily.

Open “R Console”. Go to Misc -> Change Working Directory and select the directory.


Now type getwd() command on “R Console”, to make sure working directory changes.

> getwd()
[1] "/Users/harikrishna_gurram/R/R-tutorial"


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment