0% found this document useful (0 votes)
39 views3 pages

Installing R and RStudio

Uploaded by

217854
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)
39 views3 pages

Installing R and RStudio

Uploaded by

217854
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
You are on page 1/ 3

Installing​ ​R​ ​and​ ​RStudio

Note​ ​that​ ​the​ ​R​ ​and​ ​RStudio​ ​versions​ ​may​ ​be​ ​different​ ​from​ ​what​ ​are​ ​in​ ​the​ ​videos.
Make​ ​sure​ ​you​ ​download​ ​the​ ​latest​​ ​versions.

General​ ​Download​ ​and​ ​Install​ ​(Short)


http://web.cs.ucla.edu/~gulzar/rstudio/

On​ ​Windows
https://www.youtube.com/watch?v=eD07NznguA4

On​ ​Macs
http://www.r-bloggers.com/installing-r-on-os-x/

On​ ​Ubuntu
http://www.r-bloggers.com/download-and-install-r-in-ubuntu/

Introduction​ ​to​ ​RStudio​ ​Interface


This​ ​video​ ​includes​ ​how​ ​to​ ​download​ ​and​ ​install​ ​R​ ​and​ ​RStudio​ ​on​ ​a​ ​mac,​ ​an
introduction​ ​to​ ​RStudio​ ​interface,​ ​and​ ​how​ ​to​ ​get​ ​help​ ​in​ ​RStudio.
https://www.youtube.com/watch?v=lVKMsaWju8w

.Rmd​ ​(R​ ​Markdown)​ ​Files

Introduction​ ​to​ ​R​ ​Markdown​ ​Files


http://rmarkdown.rstudio.com/authoring_quick_tour.html

(Advanced)​ ​Using​ ​R​ ​Markdown​ ​File​ ​to​ ​Write​ ​Report


If​ ​you​ ​are​ ​interested​ ​in​ ​using​ ​R​ ​Markdown​ ​files​ ​in​ ​your​ ​own​ ​work,​ ​please​ ​see​ ​the
following​ ​tutorial​ ​by​ ​DataCamp:

https://www.datacamp.com/courses/reporting-with-r-markdown?utm_source=lau
nch_blog&utm_medium=blog&utm_content=R%20Markdown%20Launch&utm_ca
mpaign=R%20Markdown%20Launch

Working​ ​on​ ​R​ ​Markdown​ ​File​ ​in​ ​the​ ​Labs


First,​ ​you​ ​need​ ​to​ ​download​ ​the​ ​instructional​ ​markdown​ ​files​ ​from​ ​the​ ​Lab
Instructions​ ​page.​ ​If​ ​Chrome​ ​doesn’t​ ​work,​ ​please​ ​switch​ ​to​ ​another​ ​browser​ ​to
download.​ ​Or​ ​you​ ​could​ ​change​ ​the​ ​file’s​ ​.txt​ ​extension​ ​to​ ​.Rmd​ ​downloaded​ ​from
Chrome.

Next,​ ​open​ ​the​ ​.Rmd​ ​file​ ​that​ ​you​ ​just​ ​downloaded​ ​with​ ​RStudio.​ ​The​ ​file​ ​contains
detailed​ ​instructions​ ​on​ ​how​ ​to​ ​do​ ​the​ ​lab​ ​and​ ​all​ ​lab​ ​questions.​ ​At​ ​this​ ​point,​ ​you
should​ ​be​ ​familiar​ ​with​ ​basic​ ​.Rmd​ ​file​ ​structures.​ ​Type​ ​in​ ​your​ ​own​ ​codes​ ​to​ ​answer
the​ ​questions​ ​between​ ​‘’’​ ​ ​‘’’​ ​where​ ​there​ ​is​ ​a​ ​“#​ ​type​ ​your​ ​code​ ​for​ ​Question​ ​X​ ​here,
and​ ​Knit”.​ ​The​ ​code​ ​chunks​ ​usually​ ​occur​ ​after​ ​each​ ​question.

If​ ​the​ ​code​ ​chunks​ ​are​ ​not​ ​light​ ​grey,​ ​that​ ​almost​ ​certianly​ ​means​ ​you​ ​still​ ​have​ ​a​ ​txt
document​ ​and​ ​you​ ​should​ ​use​ ​File-​ ​Save​ ​As​ ​and​ ​save​ ​the​ ​file​ ​with​ ​a​ ​short​ ​file​ ​name
and​ ​the​ ​suffix​ ​Rmd,​ ​like​ ​lab1.Rmd
Next,​ ​after​ ​typing​ ​in​ ​all​ ​codes​ ​for​ ​all​ ​the​ ​questions​ ​in​ ​the​ ​.Rmd​ ​file,​ ​you​ ​could​ ​go
ahead​ ​and​ ​knit​ ​the​ ​file​ ​to​ ​an​ ​.html​ ​file.​ ​To​ ​do​ ​that,​ ​click​ ​“Knit”​ ​(or​ ​for​ ​some​ ​people,
the​ ​button​ ​is​ ​called​ ​(Racheal,​ ​what​ ​is​ ​the​ ​button​ ​called​ ​in​ ​your​ ​RStudio?)).​ ​An​ ​.html
file​ ​will​ ​be​ ​produced​ ​with​ ​your​ ​codes​ ​and​ ​results.

Finally,​ ​don’t​ ​forget​ ​to​ ​fill​ ​in​ ​the​ ​answers​ ​to​ ​these​ ​lab​ ​questions​ ​in​ ​the​ ​lab​ ​quiz​ ​to​ ​get​ ​a
score.

You might also like