Skip to content

Commit 61c203c

Browse files
Update vignettes/datatable-faq.Rmd
Co-authored-by: Benjamin Schwendinger <[email protected]>
1 parent c34b256 commit 61c203c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/datatable-faq.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ DT[ , b := rnorm(5)] # 'replace' integer column with a numeric column
620620

621621
## Reading data.table from RDS or RData file
622622

623-
`*.RDS` and `*.RData` are file types which can store in-memory R objects on disk efficiently. However, storing `data.table` into a binary file loses its column over-allocation and `truelength()`. This isn't a big deal -- your `data.table` will be copied in memory on the next _by reference_ operation and throw a warning.
623+
`*.RDS` and `*.RData` are file types which can store in-memory R objects on disk efficiently. However, storing `data.table` into a binary file loses its column over-allocation (see also `?truelength`). This isn't a big deal -- your `data.table` will be copied in memory on the next _by reference_ operation and throw a warning.
624624
Therefore, it is recommended to call `setDT()` on each `data.table` loaded with `readRDS()` or `load()` calls to restore its internal attributes. If you only need to pre-allocate space for new columns, `setalloccol()` can also be used.
625625

626626
For more details, see `?setDT` and `?truelength`.

0 commit comments

Comments
 (0)