Re: [R] static analysis tools for R code?

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.ac.be>
Date: Tue 12 Apr 2005 - 00:32:13 EST

If I understand well what you need then (I think) the answer is No; this is a feature of the language called "Lazy Evaluation". For more info look at e.g., the "R Language Definition" document, section 4.3.3.

Best,
Dimitris



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


> An R script will terminate when one tries to use an
> undefined variable, with a message such as
>
> Error in print(x) : Object "x" not found
>
> This run-time error might occur after the script has
> already been running for some time. In some cases it
> would be nice to get such warnings before the script
> is run, just as a syntax error caused by a missing
> parenthesis is caught.
>
> Are there any "static analysis" tools for R? Such a
> tool would not have to be perfect to be useful.
> Besides using undefined variables, defining variables
> that are never used is something I'd like to be warned
> about.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Apr 12 11:05:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:07 EST