2. R Script
• R script is a text file where R programming
codes are saved.
• It is file with extension “ .R “
• This is a collection of codes which can be
edited to modify the results & also allows to
illustrate and explains the work done to
everyone.
• The scripts cab be visualized in code editor
window in the Rstudio.
3. Recommendation
• It is always better to save the script files and
data files in directory(folder).
• Usually the directory containing both script
files & data files which are considered for
editing / working are set as working directory.
• The setting working directory will avoid the
saving the files in default R directories.