Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread peter dalgaard
On Apr 10, 2011, at 19:54 , wrote: > On Sun, 10 Apr 2011, Hadley Wickham wrote: > Okay, I understand what you are trying to do. Yes, you have fooled codetools in this instance. >>> >>> ...but notice that the codetools warning is just that: It _is_ acknowledged >>> that these thing

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread luke-tierney
On Sun, 10 Apr 2011, Hadley Wickham wrote: Okay, I understand what you are trying to do.  Yes, you have fooled codetools in this instance. ...but notice that the codetools warning is just that: It _is_ acknowledged that these things occasionally happen by design. There are a couple of cases

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread Hadley Wickham
>> Okay, I understand what you are trying to do.  Yes, you have fooled >> codetools in this instance. > > ...but notice that the codetools warning is just that: It _is_ acknowledged > that these things occasionally happen by design. There are a couple of cases > in base R too: > > * checking R c

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread peter dalgaard
On Apr 10, 2011, at 15:10 , Duncan Murdoch wrote: > On 11-04-09 9:22 PM, Spencer Graves wrote: >> On 4/9/2011 6:12 PM, Duncan Murdoch wrote: >>> On 11-04-09 7:02 PM, Spencer Graves wrote: "R CMD check" will give this message sometimes when I don't feel it's appropriat

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread Spencer Graves
On 4/10/2011 6:10 AM, Duncan Murdoch wrote: On 11-04-09 9:22 PM, Spencer Graves wrote: On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-10 Thread Duncan Murdoch
On 11-04-09 9:22 PM, Spencer Graves wrote: On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 6:12 PM, Duncan Murdoch wrote: On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefine

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Duncan Murdoch
On 11-04-09 7:02 PM, Spencer Graves wrote: On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Spencer Graves
On 4/9/2011 2:31 PM, Hadley Wickham wrote: On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also a strict mode so the interpreter will block

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Hadley Wickham
On Sat, Apr 9, 2011 at 2:51 PM, Paul Johnson wrote: > Years ago, I did lots of Perl programming. Perl will let you be lazy > and write functions that refer to undefined variables (like R does), > but there is also a strict mode so the interpreter will block anything > when a variable is mentioned

Re: [Rd] Wish there were a "strict mode" for R interpreter. What about You?

2011-04-09 Thread Duncan Murdoch
On 11-04-09 3:51 PM, Paul Johnson wrote: Years ago, I did lots of Perl programming. Perl will let you be lazy and write functions that refer to undefined variables (like R does), but there is also a strict mode so the interpreter will block anything when a variable is mentioned that has not been