Christian Brechb¨hler

Show:

What's happening?

  • Comment: inspect() passes named args incorrectly

    The problem is that as.character(), drops the names of the parameters in the call early in inspect(). Below is a patch that fixes my symptom, by maintaining substitute(expr) in mode call. I hope somebody who understands inspector better can verify whether this is an improvement, or if I introduce other bugs. It fails on similar calls as before, e.g., inspect(8,track=track). ---...

    2007-11-22 03:57:13 UTC in R Unit Test Framework

  • inspect() passes named args incorrectly

    The code inspector doesn't correctly pass a named argument to the inspected function. Rather, it seems to drop the name, and effectively pass it as a positional argument. Here's a sample session: > myfun myfun(1, c=2) a= 1 , b= 98 , c= 2 ## So far so good. Now let's inspect myfun: >...

    2007-11-21 19:41:33 UTC in R Unit Test Framework

About Me

  • 2002-12-02 (7 years ago)
  • 660859
  • brech (My Site)
  • Christian Brechb¨hler

Send me a message