|  | 
| 1 | 1 | #' Prepare for importing data.table | 
| 2 | 2 | #' | 
| 3 |  | -#' @description | 
| 4 |  | -#' | 
| 5 | 3 | #' `use_data_table()` imports the `data.table()` function from the data.table | 
| 6 | 4 | #' package, as well as several important symbols: `:=`, `.SD`, `.BY`, `.N`, | 
| 7 |  | -#' `.I`, `.GRP`, `.NGRP`, `.EACHI`. This is a minimal setup to get `data.table`s | 
| 8 |  | -#' working with your package. See the [importing | 
| 9 |  | -#' data.table](https://rdatatable.gitlab.io/data.table/articles/datatable-importing.html) | 
| 10 |  | -#' vignette for other strategies. In addition to importing these function, | 
| 11 |  | -#' `use_data_table()` also blocks the usage of data.table in the `Depends` field | 
| 12 |  | -#' of the `DESCRIPTION` file; `data.table` should be used as an _imported_ or | 
| 13 |  | -#' _suggested_ package only. See this | 
| 14 |  | -#' [discussion](https://github.com/Rdatatable/data.table/issues/3076). | 
|  | 5 | +#' `.I`, `.GRP`, `.NGRP`, `.EACHI`. This is a minimal setup and you can learn | 
|  | 6 | +#' much more in the "Importing data.table" vignette: | 
|  | 7 | +#' `https://rdatatable.gitlab.io/data.table/articles/datatable-importing.html`. | 
|  | 8 | +#' In addition to importing these functions, `use_data_table()` also blocks the | 
|  | 9 | +#' usage of data.table in the `Depends` field of the `DESCRIPTION` file; | 
|  | 10 | +#' `data.table` should be used as an _imported_ or _suggested_ package only. See | 
|  | 11 | +#' this [discussion](https://github.com/Rdatatable/data.table/issues/3076). | 
|  | 12 | +#' | 
| 15 | 13 | #' @export | 
| 16 | 14 | use_data_table <- function() { | 
| 17 | 15 |   check_is_package("use_data_table()") | 
|  | 
0 commit comments