Skip to content
Prev 3368 / 12125 Next

[R-pkg-devel] RData files with identical objects in package

On 13/01/2019 3:38 a.m., Troels Ring wrote:
Does that every happen when ls() returns character(0)?  It seems likely 
that you have copies of them in the global workspace, and the message is 
correct.

In the earlier situation (ls() *does* return character(0), but x is 
still found), you can find where it was found using

getAnywhere("x")

For example,

 > x <- 2
 > getAnywhere("x")
A single object matching ?x? was found
It was found in the following places
   .GlobalEnv
with value

[1] 2

Duncan Murdoch