Re: [R] Problem with serialization via readRDS() on a textConnection()

2017-08-09 Thread Duncan Murdoch
On 09/08/2017 9:01 AM, Duncan Murdoch wrote: (Sorry for not linking to your message; I accidentally deleted the original copy of your message.) Your code > zz = textConnection('tempConnection', 'wb') > saveRDS(c("a", "b", "c"), zz, ascii = TRUE) > serialized_obj = paste(textConnectionValue(z

Re: [R] Problem with serialization via readRDS() on a textConnection()

2017-08-09 Thread Duncan Murdoch
(Sorry for not linking to your message; I accidentally deleted the original copy of your message.) Your code > zz = textConnection('tempConnection', 'wb') > saveRDS(c("a", "b", "c"), zz, ascii = TRUE) > serialized_obj = paste(textConnectionValue(zz), collapse='\n') > readRDS(textConnection(seri

[R] Problem with serialization via readRDS() on a textConnection()

2017-08-08 Thread Christopher Walker
Hi All, I had working code under R v3.2 that serialized an object, stored the serialized object in a database, and then successfully retrieved and hydrated that object. I recently updated to R v3.4.1 and the same code now fails. Here is the code in question (simplified), and the resulting error: