Re: [R] binary to R object

2014-07-30 Thread Ramiro Barrantes
rawConnection did it!! Thank you very much!!! From: Prof Brian Ripley [rip...@stats.ox.ac.uk] Sent: Wednesday, July 30, 2014 4:14 PM To: Ramiro Barrantes; r-help@r-project.org Subject: Re: [R] binary to R object What type actually is 'binary'

Re: [R] binary to R object

2014-07-30 Thread Prof Brian Ripley
What type actually is 'binary' here? We cannot tell, as writeBin will handle many types. If 'binary' means a raw vector, two ways: 1) Use load() on a raw connection (see ?rawConnection). 2) Make use of the information in ?readRDS. You can read the header from save() format by skipping the f