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

David Winsemius dwinsemius at comcast.net
Wed Jul 22 03:14:04 CEST 2009


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 is seems x.R is not source()-able, as it contains an unexpected  
> symbol.
>
> Thanks
> Ben



David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list