Re: [R] How to program with colleagues

From: Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk>
Date: Tue, 19 Apr 2011 18:51:17 +0100

On Tue, Apr 19, 2011 at 6:20 PM, Alaios <alaios_at_yahoo.com> wrote:

> b. Could you please suggest me an easy way to exchange the R code with my colleagues. I know about these version systems but unfortunately they look pretty bizarre to me.

 Nothing looks more bizarre than a project that isn't using version control. You end up with files like 'modelfit-daves-version.R', 'workedOnThursday.R', and 'daves-version-worked-on-Thrusday-0022.R'.

 Use Mercurial ("hg"), and force the team to use it. Only through force will the team realise it is a Good Thing. You can get private hosting for Mercurial on BitBucket for a small number of people/projects. If your code is open you can have as many projects as you like. Or you can pay for hosting.

 You may also want to decide on coding style (so that Fred isn't continually re-indenting Dave's code with three spaces instead of four). If you are developing a package the most of the directory structure is decided for you, but you might also want to use Roxygen for documentation.

 The important thing is to get it right at the start, since it can be a pain to implement many best practices after the team has been doing it wrong for a while.

 And obviously +1 for writing tests, and use git if anyone prefers it to hg.

Barry



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 19 Apr 2011 - 17:53:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Apr 2011 - 18:00:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive