[R] Clean programming with R

Christophe Genolini cgenolin at u-paris10.fr
Thu Nov 22 23:12:09 CET 2007


Hi all

Is there any compiler for R ? By compiler, I mean something that check 
the cleanliness of the code : if we declare all the variables we use, if 
we don't use external variable from a function and so on...
For exemple, something that will ring a bell on the following code 
(saying "line 4 : 'pp' undefine in function 'power' ")

1. pp <- 3
2. power <- function(x){
3.    p <- 2
4.    return(2^pp)
5. }

thanks

Christophe



More information about the R-help mailing list