You must know which working directory you are in. To show your current directory, type below in R console.
If you save a dataset later, this is the folder it will be stored at.
To change your working directory, go to File -> Change dir… on top menu.
Alternatively, you can use script to change the working directly
R comes with tons of free packages that can perform cutting edge statistical analysis. However, since there are so many of them available, R does not install them until you tell them that you need it.
You only need to install each package once per PC. To install packages, use TOOLS -> INSTALL PACKAGES, or use script
Each time you open R, you need to load the package. To load use script:
Note that you don’t need " around MASS in library command, but you must have them in install.packages command. <!- endofyank->