[Rd] get(name, envir=envir) : formal argument "envir" matched by multiple actual arguments

From: Henrik Bengtsson <hb_at_maths.lth.se>
Date: Mon 10 Apr 2006 - 13:54:56 GMT


Hi,

very sporadic and non-reproducible, I get the following type of errors:

Error in get(name, envir = envir) : formal argument "envir" matched by multiple actual arguments

Error in exists(cacheName, envir = envir, inherit = FALSE) : formal argument "envir" matched by multiple actual arguments

Error in paste(..., sep = sep) : formal argument "sep" matched by multiple actual arguments

I cannot see how these errors can occur. Note, in the third example "..." does not contain a 'sep' (or an argument with the same prefix).

The thing is that it does not happen all the time and if I just re-run my code it works fine again. What I can remember, I've seen this since about R v2.0.0 or so. My current version is Rv 2.3.0 alpha (2006-04-02 r37626) on WinXP. It has been to rare to be able to troubleshoot it and I cannot reproduce it more than running a script for hours. If I rename the variable to say,

envir2 <- envir
get(name, envir=envir2)

the problem seems to go away, i.e. it is not frequent enough to observe it.

Has anyone else seen this?

/Henrik



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Apr 11 00:27:19 2006

This archive was generated by hypermail 2.1.8 : Mon 10 Apr 2006 - 16:16:58 GMT