Skip to content
Prev 39768 / 63421 Next

Wish there were a "strict mode" for R interpreter. What

On 2011-04-09, at 2:08 PM, Ted Harding wrote:

            
I know the basics of scoping perfectly well, but that doesn't stop me from occasionally misspelling a variable name that only causes an error much later.

OTOH, I think with Perl you can start declaring your variables "local" and keep the interpreter happy. But in R's context you then have to also start declaring what you expect to inherit from parent environments, and pretty soon the code is so encrusted with annotation barnacles that it loses the simplicity that  makes R so nice in the interactive mode. 

What would be really nice is if we had a smart R editor/IDE that would "DWIM" and put a red underline under a misspelled name, but leave it alone when, as Duncan said, it's in the environment. 

Davor

Thread (21 messages)

Paul Johnson Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Duncan Murdoch Wish there were a "strict mode" for R interpreter. What about You? Apr 9 (Ted Harding) Wish there were a "strict mode" for R interpreter. What Apr 9 Hadley Wickham Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Spencer Graves Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Duncan Murdoch Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Spencer Graves Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Spencer Graves Wish there were a "strict mode" for R interpreter. What about You? Apr 9 Duncan Murdoch Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Spencer Graves Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Peter Dalgaard Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Hadley Wickham Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Luke Tierney Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Peter Dalgaard Wish there were a "strict mode" for R interpreter. What about You? Apr 10 Barry Rowlingson Wish there were a "strict mode" for R interpreter. What Apr 11 Davor Cubranic Wish there were a "strict mode" for R interpreter. What Apr 11 Simon Urbanek Wish there were a "strict mode" for R interpreter. What Apr 11 Spencer Graves Wish there were a "strict mode" for R interpreter. What Apr 11 Spencer Graves Wish there were a "strict mode" for R interpreter. What Apr 11 Roebuck,Paul L Wish there were a "strict mode" for R interpreter. What Apr 11 Duncan Murdoch Wish there were a "strict mode" for R interpreter. What Apr 11