[R] dump() an object of type raw ?

2009-07-21 Thread Benjamin Tyner
Is there a way to do this? I tried x - writeBin(pi, raw()) dump(x,x.R) source(x.R) but is seems x.R is not source()-able, as it contains an unexpected symbol. Thanks Ben __ R-help@r-project.org mailing list

Re: [R] dump() an object of type raw ?

2009-07-21 Thread David Winsemius
On Jul 21, 2009, at 7:19 PM, Benjamin Tyner wrote: Is there a way to do this? I tried Do what? writeBin(pi, raw()) [1] 18 2d 44 54 fb 21 09 40 Why would you want to source _that_? source() is for parse-able and executable R code. x - writeBin(pi, raw()) dump(x,x.R) source(x.R) but

Re: [R] dump() an object of type raw ?

2009-07-21 Thread David Winsemius
On Jul 21, 2009, at 7:19 PM, Benjamin Tyner wrote: Is there a way to do this? I tried x - writeBin(pi, raw()) dump(x,x.R) source(x.R) but is seems x.R is not source()-able, as it contains an unexpected symbol. Yes, 2d.I get: source(/Users/davidwinsemius/x.R) Error in

Re: [R] dump() an object of type raw ?

2009-07-21 Thread Benjamin Tyner
Thank you David for taking the time to respond to my question. Perhaps I should clarify: the man page says a 'dump' file can be 'source'd; have I taken the documentation too literally in this case? David Winsemius wrote: On Jul 21, 2009, at 7:19 PM, Benjamin Tyner wrote: Is there a way to

Re: [R] dump() an object of type raw ?

2009-07-21 Thread David Winsemius
On Jul 21, 2009, at 10:21 PM, Benjamin Tyner wrote: Thank you David for taking the time to respond to my question. Perhaps I should clarify: the man page says a 'dump' file can be 'source'd; have I taken the documentation too literally in this case? I suppose that objects of type raw may