<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/do-you-have-bad-r-habits-heres-how-to-identify-and-fix-them/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2018/01/bryan-workflow.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>RStudio's Jenny Bryan (whose recent interviews <a rel="nofollow" href="https://ropensci.org/blog/2017/12/08/rprofile-jenny-bryan/" target="_blank">here</a> and <a rel="nofollow" href="https://www.statschat.org.nz/2017/12/15/jenny-bryan-you-need-a-huge-tolerance-for-ambiguity/" target="_blank">here</a> you should definitely check out) has some <a rel="nofollow" href="https://www.tidyverse.org/articles/2017/12/workflow-vs-script/" target="_blank">excellent advice for improving your workflow for R</a>:</p>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">Use. Projects. — <a rel="nofollow" href="https://twitter.com/JennyBryan?ref_src=twsrc%5Etfw" target="_blank">@JennyBryan</a> at <a rel="nofollow" href="https://twitter.com/hashtag/EARLConf2017?src=hash&ref_src=twsrc%5Etfw" target="_blank">#EARLConf2017</a> <a rel="nofollow" href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw" target="_blank">#rstats</a> <a rel="nofollow" href="https://t.co/r4a08JhWHT" target="_blank">pic.twitter.com/r4a08JhWHT</a></p>
<p>— David Smith (@revodavid) <a rel="nofollow" href="https://twitter.com/revodavid/status/907897658689417217?ref_src=twsrc%5Etfw" target="_blank">September 13, 2017</a></p></blockquote>
<p></p>
<p>If you're you're routinely using <code>setwd</code> to manually change R's working directory, or using <code>rm(list = ls())</code> to 'reset' your R session, that's a good sign that you're doing all of your R work in the default R workspace. It's a much better idea to set up a separate <strong>project</strong> (at its simplest, a separate directory) for each distinct piece of work. The default R interface makes this a bit tricky, but IDEs like <a rel="nofollow" href="https://www.rstudio.com/products/rstudio/" target="_blank">RStudio</a> and <a rel="nofollow" href="https://docs.microsoft.com/en-us/visualstudio/rtvs/" target="_blank">RTVS</a> are designed to make this trivial, and you'll notice an immediate impact in the organization and reproducibility of your work.</p>
<p>And, you won't incur the Wrath of Jenny. Find her complete guide, chock-full with useful advice, at the link below.</p>
<p>Tidyverse: <a rel="nofollow" href="https://www.tidyverse.org/articles/2017/12/workflow-vs-script/" target="_blank">Project-oriented workflow</a></p>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2018/01/bryan-workflow.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/nFvFJDfGtPc" height="1"></a></div>