Sunday, December 22, 2013

2.1 Setting the working directory

Setting the working directory

In part 1 you could see how to install a working directory. For this part of the tutorial it is also needed to check the current working directory.
  1. Check the working directory with the code getwd() ;
  2. If the right working directory is not set, enter the location of the folder that you want to install as working directory. In this example you can see how to easily copy and paste the location of the working directory into the R console. Use the command setwd(*location of the working directory*). By pressing enter after this command the new working directory is set.
  3. Check the working directory for the second time by using the command getwd(). If this is set right, you are ready to continue.
Figure 14: Setting and checking the working directory
Figure 14: Setting and checking the working directory

No comments:

Post a Comment