[R] coding rules

Gavin Simpson gavin.simpson at ucl.ac.uk
Thu Aug 28 10:34:48 CEST 2008


On Wed, 2008-08-27 at 09:48 -0300, Henrique Dallazuanna wrote:
> See
> 
> http://www1.maths.lth.se/help/R/RCC/

The R Internals manual that is shipped with R also has a section on
coding standards:

http://cran.r-project.org/doc/manuals/R-ints.html#R-coding-standards

though this is quite short and does not go into detail of naming
conventions etc. This document also points to the GNU Coding Standards
which R aims to follow.

The R Developer Page has some useful information, such as guidelines for
writing *.Rd files: http://developer.r-project.org/ and the Writing R
Extensions manual has a lot of information on writing packages, cross
platform portability etc:

http://cran.r-project.org/doc/manuals/R-exts.html

G

> 
> On Wed, Aug 27, 2008 at 9:36 AM, Thomas LOUBRIEU
> <Thomas.Loubrieu at ifremer.fr> wrote:
> > Dear all,
> >
> > I am organizing a set of specific R code as package (to ease the
> > documentation and deployment of it to users).
> > Before doing so, I would like to know if there are written coding rules for
> > R (with functions, objects naming convention for example).
> >
> > Thanks a lot,
> >
> > Thomas
> >
> > --
> >
> >
> > -------------------------------------------------------------
> > Thomas LOUBRIEU
> > IFREMER IDM/ISI
> > BP70
> > 29280 Plouzane
> > FRANCE
> >  email: Thomas.Loubrieu at ifremer.fr
> > WWW  : http://www.coriolis.eu.org/cdc
> > Tel.:  (+33) (0)2 98 22 48 53
> > Fax:   (+33) (0)2 98 22 46 44
> >
> > ______________________________________________
> > 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.
> >
> 
> 
> 
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list