Do you have bad R habits? Here’s how to identify and fix them.

January 2, 2018
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

RStudio's Jenny Bryan (whose recent interviews here and here you should definitely check out) has some excellent advice for improving your workflow for R:

If you're you're routinely using setwd to manually change R's working directory, or using rm(list = ls()) 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 project (at its simplest, a separate directory) for each distinct piece of work. The default R interface makes this a bit tricky, but IDEs like RStudio and RTVS are designed to make this trivial, and you'll notice an immediate impact in the organization and reproducibility of your work.

And, you won't incur the Wrath of Jenny. Find her complete guide, chock-full with useful advice, at the link below.

Tidyverse: Project-oriented workflow

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)