Hi together,

while trying to write a minimal example for a problem that is bothering me,
I discoverd that dput() does not work on data.tables. More precisely, the
output of dput cannot be read in, most probably because the
".internal.selfref = <pointer: ...&quot; syntax causes problems:

library(data.table)
DT &lt;- data.table(A=1:2, B=2:3)
dput(DT)
structure(list(A = 1:2, B = 2:3), 
          .Names = c(&quot;A&quot;, &quot;B&quot;), 
          row.names = c(NA, -2L), 
          class = c(&quot;data.table&quot;, &quot;data.frame&quot;), 
          .internal.selfref = &lt;pointer: 0x0000000000150788>)

Trying to read the structure part gives: "Error: unexpected '<' in:
"          class = c("data.table", "data.frame"), 
          .internal.selfref = <"

Are there any workarounds? If not, is this a base-R problem or a data.table
specific problem?

Thanks Christoph

--
View this message in context: 
http://r.789695.n4.nabble.com/dput-does-not-work-with-data-table-tp4519150p4519150.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to