Skip to content
Prev 39734 / 63424 Next

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

On 11-04-09 3:51 PM, Paul Johnson wrote:
It would be really bad, unless done carefully.

In your function the free (undefined) variables are dat and lm.  You 
want to be warned about dat, but you don't want to be warned about lm. 
What rule should R use to determine that?

(One possible rule would work in a package with a namespace.  In that 
case, all variables must be found in declared dependencies, the search 
could stop before it got to globalenv().  But it seems unlikely that 
your students are writing packages with namespaces.)

Duncan Murdoch

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