Skip to content
Prev 82331 / 398502 Next

R is GNU S, not C.... [was "how to get or store ....."]

Hello,

About the "R style war": as soon as you write code for yourself, you can 
do what you want, of course. If your code is shared (for instance, code 
in packages submitted to CRAN), it makes sense to render it so that it 
is easier to read *by a majority of people*. The only way to make sure 
it is easy to read  by most people is to follow strictly the style 
proposed by the R core team (even if you don't like it)!

So, if you write both code for yourself and for public release, and/or 
if you think that your code will become public one day, it is better to 
follow R core team style from the beginning. Similarly, you should never 
use T/F instead of TRUE/FALSE in code that will go to a library ('cause 
you'll have to change it anyway)... So, why not to take the habit to 
write TRUE/FALSE all the time in your code?

The conclusion: it is far better to strictly follow R core team style 
for *all* code (your own plus the one your share), because it is easier 
to stick on one style... and, don't worry, you will gradually become 
accustomished to the aspects you don't like in that style.

So, who said there is an "R style war"? There is one set of rules to 
follow. Point. Don't you have better things to do that to discuss if one 
needs a space here (a <- 1), or not (a<-1) ?

Best,

Philippe Grosjean
Patrick Connolly wrote:

Thread (33 messages)

shanmuha boopathy how to get or store the intermediate v?lues while running a function Dec 6 vincent@7d4.com how to get or store the intermediate v?lues while running a function Dec 6 Martin Maechler R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Adaikalavan Ramasamy R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Philippe GROSJEAN R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Adaikalavan Ramasamy R is GNU S, not C.... [was "how to get or store ....."] Dec 6 vincent@7d4.com R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Brian Ripley R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Xiaofan Li R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Jan T. Kim R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Peter Ehlers R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Barry Rowlingson R formatting Dec 6 Patrick Burns R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Peter Dalgaard R formatting Dec 6 Martin Maechler R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Barry Rowlingson R formatting Dec 6 vincent@7d4.com R is GNU S, not C.... [was "how to get or store ....."] Dec 6 (Ted Harding) R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Deepayan Sarkar R is GNU S, not C.... [was "how to get or store ....."] Dec 6 (Ted Harding) R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Patrick Connolly R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Philippe GROSJEAN R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Patrick Connolly R is GNU S, not C.... [was "how to get or store ....."] Dec 6 vincent@7d4.com R is GNU S, not C.... [was "how to get or store ....."] Dec 6 Peter Ehlers R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Dave Roberts R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Gabor Grothendieck R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Jan T. Kim R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Jim Lemon R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Deepayan Sarkar R is GNU S, not C.... [was "how to get or store ....."] Dec 7 Brian Ripley R coding style (was R is GNU S, not C....) Dec 7 Martin Maechler R is GNU S, not C.... [was "how to get or store ....."] Dec 7 vincent@7d4.com R coding style (was R is GNU S, not C....) Dec 8