I have R object which is to be shared with another analyst. I write:
dput(objectname,"filename.R")
and then the object can be reconstructed by sharing the .R file and using the dget(filename.R) function. Now what I want to do is just share the object structure and not the file. Is it possible? I tried the following:
a <- dput(b)
structure(1:50, .Dim = c(10L, 5L))
But cannot reconstruct this object. All I get is :
dget(a)
?
Note that after
dput
tingb
and assigning it toa
a message is displayed, to recover b, just printa
.