0% found this document useful (0 votes)
14 views4 pages

RStudio Installation and Usage Guide

RStudio Step-by-Step Guide outlines the basic steps to use RStudio: 1. Download and install RStudio and R on your computer. Open RStudio and set your working directory to the folder containing your assignment files. 2. Click on files in the Files tab to open them in the editor pane, or source program files by clicking Source to run them and see output in the Console. 3. Install packages by selecting Tools/Install Packages, downloading zipped binaries, selecting the file, and clicking Install while checking dependencies. If using lab machines, reinstall packages each session. Binary installation is easiest, but source installation may be needed depending on your platform.

Uploaded by

scribewriter1990
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

RStudio Installation and Usage Guide

RStudio Step-by-Step Guide outlines the basic steps to use RStudio: 1. Download and install RStudio and R on your computer. Open RStudio and set your working directory to the folder containing your assignment files. 2. Click on files in the Files tab to open them in the editor pane, or source program files by clicking Source to run them and see output in the Console. 3. Install packages by selecting Tools/Install Packages, downloading zipped binaries, selecting the file, and clicking Install while checking dependencies. If using lab machines, reinstall packages each session. Binary installation is easiest, but source installation may be needed depending on your platform.

Uploaded by

scribewriter1990
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

RStudio Step-by-Step Guide

Hiroyuki Kawakatsu
Business School
Dublin City University
Dublin 9, Ireland
[Link]@[Link]
February 6, 2012
Disclaimer: I am not sure that what is described below is the right way to use RStudio. It
is merely the way I found by downloading the program and playing around a bit. If you nd a
better way, please let me know.
1. If you want to use RStudio on your own computer, download and install. You also need to
install R. (Both should already be installed in the Business School computer labs.)
2. Download all material for the assignment in a directory. Fire up RStudio. The rst thing to
do is to let RStudio know that you will be working in that directory. Click on the Files tab
in the bottom right pane. If you do not see the les in the directory listed, change directory
by clicking on the . . . at the right end and locate the directory.
Once you see the les for the assignment listed under the Files tab, select More/Set As
Working Directory.
1
3. To see the contents of a le listed under the Files tab, just click on that le.
If you click on an R program le with extension .R or .r, the le will open in a text editor
in the upper left pane. This is where you edit or write a program le.
4. To run the program le, rst save the le if you made any additions or modications to
the le. Then source it by clicking on Source at the top of the editor window pane. The
results of running that program le will show up in the Console pane in the bottom left.
2
5. To install a package, select Tools/Install Packages... from the main menu. To avoid
rewall issues, download the zipped binary (if available) before you do this. Do not unzip
the downloaded le; R knows how to unzip it.
3
If you downloaded the zipped binary, select Package Archive File and locate the downloaded
le by clicking on the Browse... button. Make sure the Install dependencies box is checked
and Install. If you are using the lab machines, you will need to re-install the package every
time you log in.
If a binary package is not available for your platform, you need to install from the source les.
To do so, you need to have additional (free) software to build the source les. For windoze
64-bit, see Building R for Windows; for macs, see R for Mac OS X FAQ for instructions; for
linux/unix, see Essential and useful other programs under a Unix-alike.
4

You might also like