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

Installing R and RStudio Guide

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)
4 views3 pages

Installing R and RStudio Guide

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

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)


[Link]

On​ ​Windows
[Link]

On​ ​Macs
[Link]

On​ ​Ubuntu
[Link]

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.
[Link]

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

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


[Link]

(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:

[Link]
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​ ​[Link]
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