search for: namesraw

Displaying 1 result from an estimated 1 matches for "namesraw".

Did you mean: namespac
2007 Aug 31
1
Consistency of serialize(): please enlighten me
Hi, I am puzzled with serialize(). It comes down generating identical hash codes for (apparently) identical objects using digest::digest(), which in turn relies on serialize(). Here is an example illustration the issue: ser <- function(object, ...) { list( names = names(object), namesRaw = charToRaw(names(object)), ser = serialize(names(object), connection=NULL, ascii=FALSE) ) } # ser() # Object to be serialized key <- key0 <- list(abc="Hello"); # Store results d <- list(); # 1. As is d[[1]] <- ser(key); # 2. Set names and redo (hardwired: identical...