<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/getting-started-first-steps-into-r/"></div></div><div><a data-url="http://www.r-bloggers.com/getting-started-first-steps-into-r/" data-counturl="http://www.r-bloggers.com/getting-started-first-steps-into-r/" data-count="horizontal" data-text="Getting started… first steps into R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://datascience-africa.org/2016/05/getting-started-first-steps-r/"> R – Data Science Africa</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img sizes="(max-width: 236px) 100vw, 236px" srcset="http://datascience-africa.org/wp-content/uploads/2016/05/start-150x150.jpg 150w, http://datascience-africa.org/wp-content/uploads/2016/05/start-70x70.jpg 70w, http://i2.wp.com/datascience-africa.org/wp-content/uploads/2016/05/start.jpg?resize=236%2C236 236w" alt="start" class="wp-image-361" src="http://i2.wp.com/datascience-africa.org/wp-content/uploads/2016/05/start.jpg?resize=236%2C236" data-recalc-dims="1"></p>
<p>We all started R from somewhere. Some of us progressed quickly and some of us struggled and suffered through every step. But we all started. This post is written for the absolute beginners, and details how to install R, RStudio and how to deal with package installation problems.</p>
<ul>
<li>Download and install the latest version of R (<a target="_blank" href="https://cran.r-project.org/bin/windows/base/">https://cran.r-project.org/bin/windows/base/</a> )</li>
</ul>
<p><img sizes="(max-width: 300px) 100vw, 300px" srcset="http://i1.wp.com/datascience-africa.org/wp-content/uploads/2016/05/RInst-300x78.png?resize=300%2C78 300w, http://datascience-africa.org/wp-content/uploads/2016/05/RInst.png 463w" alt="RInst" class="wp-image-360" src="http://i1.wp.com/datascience-africa.org/wp-content/uploads/2016/05/RInst-300x78.png?resize=300%2C78" data-recalc-dims="1"></p>
<ul>
<li>Download and install the latest RStudio (<a target="_blank" href="https://www.rstudio.com/products/rstudio/download">https://www.rstudio.com/products/rstudio/download</a>)</li>
</ul>
<p><img sizes="(max-width: 300px) 100vw, 300px" srcset="http://i1.wp.com/datascience-africa.org/wp-content/uploads/2016/05/RSInst-300x155.png?resize=300%2C155 300w, http://datascience-africa.org/wp-content/uploads/2016/05/RSInst.png 624w" alt="RSInst" class="wp-image-359" src="http://i1.wp.com/datascience-africa.org/wp-content/uploads/2016/05/RSInst-300x155.png?resize=300%2C155" data-recalc-dims="1"></p>
<p> </p>
<ul>
<li>And then you open and operate out of RStudio (you don’t need to use R directly, RStudio will use it for you in a more convenient way).</li>
<li>The next thing that you will need to be able to do is install packages. This is as simple as writing:</li>
</ul>
<p><code>     install.packages(&quot;ggplot2&quot;)</code></p>
<p>However, frequently the installation process fails (most times this is due to an antivirus or firewall issue. When the installation fails, it is typically one of two things: The package will download partially (in that case, just run the install command again), or it will download correctly, but didn’t copy over to your library correctly. This error will look like this:</p>
<p><img sizes="(max-width: 300px) 100vw, 300px" srcset="http://i2.wp.com/datascience-africa.org/wp-content/uploads/2016/05/packageProblems-300x76.png?resize=300%2C76 300w, http://datascience-africa.org/wp-content/uploads/2016/05/packageProblems.png 624w" alt="packageProblems" class="wp-image-358" src="http://i2.wp.com/datascience-africa.org/wp-content/uploads/2016/05/packageProblems-300x76.png?resize=300%2C76" data-recalc-dims="1"></p>
<p>When this happens, you will have to finish copying links over yourself. To do this:</p>
<ul>
<li>copy the folder location marked with “copy this link” above, and open a windows explorer session there.</li>
<li>Find the zip file for whatever package you were trying to download</li>
<li>Open the zip file to reveal a folder</li>
<li>Finally, copy THAT folder into your Library (the path to your library is given in R… take a look at the R screenshot above and note where it says “THIS IS YOUR LIBRARY”</li>
</ul>
<p> </p>
<p>Welcome to R!!</p>
<p>The post <a target="_blank" rel="nofollow" href="http://datascience-africa.org/2016/05/getting-started-first-steps-r/">Getting started… first steps into R</a> appeared first on <a target="_blank" rel="nofollow" href="http://datascience-africa.org/">Data Science Africa</a>.</p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/getting-started-first-steps-into-r/"></div></div><div><a data-url="http://www.r-bloggers.com/getting-started-first-steps-into-r/" data-counturl="http://www.r-bloggers.com/getting-started-first-steps-into-r/" data-count="vertical" data-text="Getting started… first steps into R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://datascience-africa.org/2016/05/getting-started-first-steps-r/"> R – Data Science Africa</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/RBb6J2Aje_Q"></a></div>