use_data_table: Prepare for importing data.table

Description Usage

View source: R/data-table.R


use_data_table facilitates importing the data.table package by handling up-front some common set-up tasks for using it in your package.

This function does two main things:

  1. Import the entire data.table namespace (with @import).

  2. Block the usage of data.table as a dependency (DESCRIPTION field Depends); data.table should be used as an imported or suggested package only. See this discussion.



usethis documentation built on Feb. 10, 2021, 5:08 p.m.