Displaying 1 result from an estimated 1 matches for "inboth".
Did you mean:
both
2004 Sep 28
0
Displaying environment differences
...;s the difference between
the objects I currently have in my R session and those that were loaded
from my .RData when I started R".
So I bashed this out in five minutes, just to test the principles.
differ <- function(file){
load(file)
inFile <- ls()
inMemory <- ls(1)
inBoth <- inFile[inFile %in% inMemory]
for(thing in inBoth){
if(identical(get(thing,1),get(thing))){
cat(paste("Object :",thing," identical\n"))
}else{
cat(paste("Object :",thing," changed\n"))
}
}
list(inFile,inMemory,inBo...