Bug 14650 - retracemem does not match arguments correctly
Summary: retracemem does not match arguments correctly
Alias: None
Product: R
Classification: Unclassified
Component: Language (show other bugs)
Version: R-devel (trunk)
Hardware: All All
: P5 minor
Assignee: R-core
Depends on:
Reported: 2011-08-05 22:57 UTC by Radford Neal
Modified: 2011-08-08 16:44 UTC (History)
0 users

See Also:


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