Re: [Rd] Detecting typo in function argument

2011-12-12 Thread Uwe Ligges
This is valid syntax, so what should we check for?. Uwe On 12.12.2011 22:10, John C Nash wrote: With some chagrin after spending a couple of hours trying to debug a script, I realized I had typed in something like ans<-optimx(start, myfn, mygr, lower<-lo, upper=up) that is, the "<-" rather

[Rd] Detecting typo in function argument

2011-12-12 Thread John C Nash
With some chagrin after spending a couple of hours trying to debug a script, I realized I had typed in something like ans<-optimx(start, myfn, mygr, lower<-lo, upper=up) that is, the "<-" rather than "=". The outcome on my machine was a non-obvious error several layers deep in the call stack. F