use_data_table facilitates importing data.table 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 import or suggested package only. See this discussion.

use_data_table()