Install and Configure R and RStudio

Post on 10-May-2015

1.927 views 3 download

Tags:

Transcript of Install and Configure R and RStudio

Installing and configuring

& StudiouseR@HSPH

Kazuki Yoshida, M.D. MPH-CLE student

FREEDOMTO  KNOW

Create a folder for this study group

This will be your working directory.Put everything related here!

First download and installhttp://www.r-project.org

http://www.r-project.org

Choose the one you need

Download and install this

GUI toolkit

R itself

R itself

Install both files

Then download and installStudio

http://rstudio.org

http://rstudio.org Click here

http://rstudio.org

Watch this!

OR

Download and install RStudio Desktop appropriate for your computer

Make sure you installed

both

First you’ll configure Studio

Open R Studio

ConsolePlot

Workspace

Tools-Options

Choose folder you created

Restart RStudioafter cofiguration

Choose mirror geographically close

CRANmirror

Working directory

Folder your are working in. Make sure it

is the one you created

Createa script

Source

Console Plot

WorkspaceThis is where you write code

You see dataset names here

You see outputs here

Install additional packages

foreign sas7bdat XML

gdataxlsx

Install packages!

Use text filesuch as csvif possible

For comma-, tab-, or space-separated text,

GUI is available

Text