Bug 14650 - retracemem does not match arguments correctly
retracemem does not match arguments correctly
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: Language
R-devel (trunk)
All All
: P5 minor
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-05 22:57 UTC by Radford Neal
Modified: 2011-08-08 16:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radford Neal 2011-08-05 22:57:39 UTC
For example (with --enable-memory-profiling):

> a<-0
> retracemem(a,previous=NULL)
> retracemem(previous=NULL,a)
Error in retracemem(previous = NULL, a) : invalid 'previous' argument

Examination of the code for do_retracemem in debug.c shows that it calls matchArgs to match arguments by name, but then ignores the result and refers instead to the original argument list, by position.
Comment 1 Brian Ripley 2011-08-08 16:44:29 UTC
Fixed in 2.13.1 patched